Browse Source

Fix #193: Better validation for triggering `filebatchuploadcomplete`

Kartik Visweswaran 10 years ago
parent
commit
ca50b52152
2 changed files with 2 additions and 2 deletions
  1. 2 2
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 2 - 2
js/fileinput.js

@@ -1023,8 +1023,8 @@
                 return;
                 return;
             }
             }
             chkComplete = function () {
             chkComplete = function () {
-                var $thumbs = self.$preview.find('.file-preview-frame.file-uploading'), chk = $thumbs.length && self.fileBatchCompleted;
-                if (chk > 0) {
+                var $thumbs = self.$preview.find('.file-preview-frame.file-uploading');
+                if ($thumbs.length > 0 && self.fileBatchCompleted) {
                     return;
                     return;
                 }
                 }
                 self.setProgress(100);
                 self.setProgress(100);

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff