Browse Source

Fix #230: More correct initial preview delete reset

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

+ 1 - 0
CHANGE.md

@@ -56,6 +56,7 @@ version 4.1.8
 33. (enh #227): Created Ukranian translations and updated Russian translations.
 34. (enh #228): Created Thai translations.
 35. (enh #229): Created French translations.
+36. (enh #230): More correct initial preview delete reset.
 
 version 4.1.7
 =============

+ 1 - 1
js/fileinput.js

@@ -949,7 +949,7 @@
                             self.clearObjects($frame);
                             $frame.remove();
                             resetProgress();
-                            if (!previewCache.count(self.id)) {
+                            if (!previewCache.count(self.id) && self.getFileStack().length === 0) {
                                 self.reset();
                             }
                         });

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