File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 446446 return options . onBeforeAjaxFormValidation ( form , options ) ;
447447 } ,
448448 error : function ( data , transport ) {
449- methods . _ajaxError ( data , transport ) ;
449+ if ( options . onFailure ) {
450+ options . onFailure ( data , transport ) ;
451+ } else {
452+ methods . _ajaxError ( data , transport ) ;
453+ }
450454 } ,
451455 success : function ( json ) {
452456 if ( ( dataType == "json" ) && ( json !== true ) ) {
14041408 options : options ,
14051409 beforeSend : function ( ) { } ,
14061410 error : function ( data , transport ) {
1407- methods . _ajaxError ( data , transport ) ;
1411+ if ( options . onFailure ) {
1412+ options . onFailure ( data , transport ) ;
1413+ } else {
1414+ methods . _ajaxError ( data , transport ) ;
1415+ }
14081416 } ,
14091417 success : function ( json ) {
14101418
You can’t perform that action at this time.
0 commit comments