Browse Source

Fix preview cache content reset

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

+ 2 - 1
js/fileinput.js

@@ -112,7 +112,8 @@
                     return;
                     return;
                 }
                 }
                 if (chk === 1) {
                 if (chk === 1) {
-                    delete previewCache.data[id];
+                    previewCache.data[id].content = [];
+                    previewCache.data[id].config = [];
                     return;
                     return;
                 }
                 }
                 previewCache.data[id].content[index] = undefined;
                 previewCache.data[id].content[index] = undefined;

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