File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
2
* jQuery Form Plugin
3
- * version: 3.43 .0-2013.09.03
3
+ * version: 3.44 .0-2013.09.15
4
4
* Requires jQuery v1.5 or later
5
5
* Copyright (c) 2013 M. Alsup
6
6
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -209,7 +209,7 @@ $.fn.ajaxSubmit = function(options) {
209
209
210
210
// [value] (issue #113), also see comment:
211
211
// https://github.com/malsup/form/commit/588306aedba1de01388032d5f42a60159eea9228#commitcomment-2180219
212
- var fileInputs = $ ( 'input[type=file]:enabled' , this ) . filter ( function ( ) { return $ ( this ) . val ( ) != '' ; } ) ;
212
+ var fileInputs = $ ( 'input[type=file]:enabled' , this ) . filter ( function ( ) { return $ ( this ) . val ( ) !== '' ; } ) ;
213
213
214
214
var hasFileInputs = fileInputs . length > 0 ;
215
215
var mp = 'multipart/form-data' ;
@@ -832,7 +832,7 @@ function doAjaxSubmit(e) {
832
832
var options = e . data ;
833
833
if ( ! e . isDefaultPrevented ( ) ) { // if event has been canceled, don't proceed
834
834
e . preventDefault ( ) ;
835
- $ ( this ) . ajaxSubmit ( options ) ;
835
+ $ ( e . target ) . ajaxSubmit ( options ) ; // #365
836
836
}
837
837
}
838
838
You can’t perform that action at this time.
0 commit comments