Przeglądaj źródła

Fix #188: Clear fileinput more correctly for all browsers when initialPreview is set

Kartik Visweswaran 10 lat temu
rodzic
commit
aabd4237eb
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 3 - 0
js/fileinput.js

@@ -610,6 +610,9 @@
                             self.reset();
                         } else {
                             n = self.initialPreviewCount + len;
+                            if (len === 0) {
+                                self.clear(false);
+                            }
                             cap = n > 1 ? self.msgSelected.repl('{n}', n) : filestack[0].name;
                             self.setCaption(cap);
                         }

Plik diff jest za duży
+ 0 - 0
js/fileinput.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików