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