소스 검색

Merge pull request #604 from rapomon/patch-5

Fixed unset method used for delete a previewCache index
Kartik Visweswaran 9 년 전
부모
커밋
f1c2272203
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      js/fileinput.js

+ 3 - 1
js/fileinput.js

@@ -204,10 +204,12 @@
             if (chk === 1) {
             if (chk === 1) {
                 previewCache.data[id].content = [];
                 previewCache.data[id].content = [];
                 previewCache.data[id].config = [];
                 previewCache.data[id].config = [];
+                previewCache.data[id].tags = [];
                 return;
                 return;
             }
             }
             previewCache.data[id].content[index] = null;
             previewCache.data[id].content[index] = null;
             previewCache.data[id].config[index] = null;
             previewCache.data[id].config[index] = null;
+            previewCache.data[id].tags[index] = null;
         },
         },
         out: function (id) {
         out: function (id) {
             var html = '', data = previewCache.data[id], caption, len = previewCache.count(id, true);
             var html = '', data = previewCache.data[id], caption, len = previewCache.count(id, true);
@@ -2761,4 +2763,4 @@
             $input.fileinput();
             $input.fileinput();
         }
         }
     });
     });
-}));
+}));