mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Closes #2688
This commit is contained in:
parent
1ba2865b08
commit
a9fe9a2a5f
@ -292,7 +292,10 @@ 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 New Issue
Block a user