]> source.dussan.org Git - jquery.git/commitdiff
Closes #2688
authorYehuda Katz <wycats@gmail.com>
Mon, 14 Apr 2008 18:16:01 +0000 (18:16 +0000)
committerYehuda Katz <wycats@gmail.com>
Mon, 14 Apr 2008 18:16:01 +0000 (18:16 +0000)
src/ajax.js

index 3e72488036aa9bbdde8fa691466b31df06a91601..77537e7060ab4f291202ee8662473adbbbdf654c 100644 (file)
@@ -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]);