File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * jQuery File Upload File Processing Plugin 1.2.1
2+ * jQuery File Upload File Processing Plugin 1.2.3
33 * https://github.com/blueimp/jQuery-File-Upload
44 *
55 * Copyright 2012, Sebastian Tschan
6262 // fileupload widget (via file input selection, drag & drop or add
6363 // API call). See the basic file upload widget for more information:
6464 add : function ( e , data ) {
65- $ ( this ) . fileupload ( 'process' , data ) . done ( function ( ) {
66- data . submit ( ) ;
67- } ) ;
65+ if ( data . autoUpload || ( data . autoUpload !== false &&
66+ ( $ ( this ) . data ( 'blueimp-fileupload' ) ||
67+ $ ( this ) . data ( 'fileupload' ) ) . options . autoUpload ) ) {
68+ $ ( this ) . fileupload ( 'process' , data ) . done ( function ( ) {
69+ data . submit ( ) ;
70+ } ) ;
71+ }
6872 }
6973 } ,
7074
You can’t perform that action at this time.
0 commit comments