Ver código fonte

Fix #193: Better validation for triggering `filebatchuploadcomplete`

Kartik Visweswaran 10 anos atrás
pai
commit
ca50b52152
2 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 2 - 2
js/fileinput.js

@@ -1023,8 +1023,8 @@
                 return;
             }
             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;
                 }
                 self.setProgress(100);

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
js/fileinput.min.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff