Closes #2688
This commit is contained in:
parent
1ba2865b08
commit
a9fe9a2a5f
1 changed files with 4 additions and 1 deletions
|
@ -292,8 +292,11 @@ jQuery.extend({
|
||||||
|
|
||||||
// Allow custom headers/mimetypes
|
// Allow custom headers/mimetypes
|
||||||
if ( s.beforeSend )
|
if ( s.beforeSend )
|
||||||
s.beforeSend(xml);
|
var beforeSendSuccess = s.beforeSend(xml, s);
|
||||||
|
|
||||||
|
if( beforeSendSuccess === false )
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( s.global )
|
if ( s.global )
|
||||||
jQuery.event.trigger("ajaxSend", [xml, s]);
|
jQuery.event.trigger("ajaxSend", [xml, s]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue