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 ) ) {
14071411 options : options ,
14081412 beforeSend : function ( ) { } ,
14091413 error : function ( data , transport ) {
1410- methods . _ajaxError ( data , transport ) ;
1414+ if ( options . onFailure ) {
1415+ options . onFailure ( data , transport ) ;
1416+ } else {
1417+ methods . _ajaxError ( data , transport ) ;
1418+ }
14111419 } ,
14121420 success : function ( json ) {
14131421
You can’t perform that action at this time.
0 commit comments