mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 16:08:06 -05:00
Closes #2688
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user