diff options
author | Yehuda Katz <wycats@gmail.com> | 2008-04-14 18:16:01 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2008-04-14 18:16:01 +0000 |
commit | a9fe9a2a5f935fc79610d952b68d592f5cfd9ff8 (patch) | |
tree | e38324af5c46a9da9b54e532036ed243591df911 /src/ajax.js | |
parent | 1ba2865b089fc06242004b7003b4f8dcfd92dc13 (diff) | |
download | jquery-a9fe9a2a5f935fc79610d952b68d592f5cfd9ff8.tar.gz jquery-a9fe9a2a5f935fc79610d952b68d592f5cfd9ff8.zip |
Closes #2688
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 3e7248803..77537e706 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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]); |