From a9fe9a2a5f935fc79610d952b68d592f5cfd9ff8 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Mon, 14 Apr 2008 18:16:01 +0000 Subject: [PATCH] Closes #2688 --- src/ajax.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]); -- 2.39.5