Skip to content

Commit c1fdefd

Browse files
committed
jquery-form#234 provide access to jqxhr
1 parent 8f8013d commit c1fdefd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jquery.form.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.15 (09-SEP-2012)
3+
* version: 3.16 (25-SEP-2012)
44
* @requires jQuery v1.3.2 or later
55
*
66
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -196,10 +196,10 @@ $.fn.ajaxSubmit = function(options) {
196196
}
197197
}
198198
else if ((hasFileInputs || multipart) && fileAPI) {
199-
fileUploadXhr(a);
199+
options.jqxhr = fileUploadXhr(a);
200200
}
201201
else {
202-
$.ajax(options);
202+
options.jqxhr = $.ajax(options);
203203
}
204204

205205
// clear element array
@@ -273,7 +273,7 @@ $.fn.ajaxSubmit = function(options) {
273273
if(beforeSend)
274274
beforeSend.call(this, xhr, o);
275275
};
276-
$.ajax(s);
276+
return $.ajax(s);
277277
}
278278

279279
// private function for handling file uploads (hat tip to YAHOO!)

0 commit comments

Comments
 (0)