Skip to content

Commit d18b627

Browse files
committed
1 parent 5e7391b commit d18b627

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

jquery.form.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.37.0-2013.07.11
3+
* version: 3.38.0-2013.07.31
44
* @requires jQuery v1.5 or later
55
* Copyright (c) 2013 M. Alsup
66
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -209,7 +209,7 @@ $.fn.ajaxSubmit = function(options) {
209209

210210
// [value] (issue #113), also see comment:
211211
// https://github.com/malsup/form/commit/588306aedba1de01388032d5f42a60159eea9228#commitcomment-2180219
212-
var fileInputs = $('input[type=file]:enabled[value!=""]', this);
212+
var fileInputs = $('input[type=file]:enabled:not([value=""])', this);
213213

214214
var hasFileInputs = fileInputs.length > 0;
215215
var mp = 'multipart/form-data';
@@ -326,6 +326,11 @@ $.fn.ajaxSubmit = function(options) {
326326
var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
327327
var deferred = $.Deferred();
328328

329+
// #341
330+
deferred.abort = function(status) {
331+
xhr.abort(status);
332+
};
333+
329334
if (a) {
330335
// ensure that every serialized input is still enabled
331336
for (i=0; i < elements.length; i++) {
@@ -1190,4 +1195,4 @@ function log() {
11901195
}
11911196
}
11921197

1193-
})(jQuery);
1198+
})(window.jQuery || window.Zepto);

0 commit comments

Comments
 (0)