File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ $(function() {
88 submitSuccess : function ( $form , event ) {
99 event . preventDefault ( ) ; // prevent default submit behaviour
1010 $ . post ( $form . attr ( "action" ) , $form . serialize ( ) )
11- . then ( function ( ) {
11+ . done ( function ( ) {
1212 // Success message
1313 $ ( '#success' ) . html ( "<div class='alert alert-success'>" ) ;
1414 $ ( '#success > .alert-success' ) . html ( "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×" )
@@ -21,7 +21,7 @@ $(function() {
2121 //clear all fields
2222 $ ( '#contactForm' ) . trigger ( "reset" ) ;
2323 } )
24- . catch ( function ( ) {
24+ . fail ( function ( ) {
2525 // Fail message
2626 $ ( '#success' ) . html ( "<div class='alert alert-danger'>" ) ;
2727 $ ( '#success > .alert-danger' ) . html ( "<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×" )
You can’t perform that action at this time.
0 commit comments