Subversion Repositories My Stuff

Rev

Rev 13 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 14
1
/*#######################################################################
1
/*#######################################################################
2
# This script is distributed in the hope that it will be useful,
2
# This script is distributed in the hope that it will be useful,
3
# but WITHOUT ANY WARRANTY; without even the implied warranty of
3
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5
# GNU General Public License for more details.
5
# GNU General Public License for more details.
6
# Author: Andrzej Kardaś
6
# Author: Andrzej Kardaś
7
# License: GPLv3
7
# License: GPLv3
8
# The full version of the licencse can be obtainted by visiting:
8
# The full version of the licencse can be obtainted by visiting:
9
# http://www.gnu.org/licenses/gpl.html
9
# http://www.gnu.org/licenses/gpl.html
10
#######################################################################*/
10
#######################################################################*/
11
$(document).ready(function(){
11
$(document).ready(function(){
12
        var options = {
12
        var options = {
13
                        target: '#email_form',
13
                        target: '#email_form',
14
                        success: function() {
14
                        success: function() {
15
                $('#email_form > #form-indicator').hide();
15
                $('#email_form > #form-indicator').hide();
16
                $('#email_form > form').ajaxForm(options);
16
                $('#email_form > form').ajaxForm(options);
17
                        },
17
                        },
18
                        replaceTarget:true,
18
                        replaceTarget:true,
19
                        beforeSubmit: function() {
19
                        beforeSubmit: function() {
20
                                $('#email_form > #form-indicator').show();
20
                                $('#email_form > #form-indicator').show();
21
                        }
21
                        }
22
                };
22
                };
23
                $('#email_form > form').ajaxForm(options);
23
                $('#email_form > form').ajaxForm(options);
-
 
24
               
24
});
25
});