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 446
446
return options . onBeforeAjaxFormValidation ( form , options ) ;
447
447
} ,
448
448
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
+ }
450
454
} ,
451
455
success : function ( json ) {
452
456
if ( ( dataType == "json" ) && ( json !== true ) ) {
1407
1411
options : options ,
1408
1412
beforeSend : function ( ) { } ,
1409
1413
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
+ }
1411
1419
} ,
1412
1420
success : function ( json ) {
1413
1421
You can’t perform that action at this time.
0 commit comments