ソースを参照

Fix #1152: Correct preview cache splicing

Kartik Visweswaran 7 年 前
コミット
af82b08729
2 ファイル変更3 行追加3 行削除
  1. 3 3
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 3 - 3
js/fileinput.js

@@ -1028,9 +1028,9 @@
                         self.initialPreviewThumbTags = [];
                         return;
                     }
-                    self.previewCache.data.content.splice(index, 1);
-                    self.previewCache.data.config.splice(index, 1);
-                    self.previewCache.data.tags.splice(index, 1);
+                    self.previewCache.data.content = $h.spliceArray(self.previewCache.data.content, index);
+                    self.previewCache.data.config = $h.spliceArray(self.previewCache.data.config, index);
+                    self.previewCache.data.tags = $h.spliceArray(self.previewCache.data.tags, index);
                 },
                 out: function () {
                     var html = '', caption, len = self.previewCache.count(), i;

ファイルの差分が大きいため隠しています
+ 0 - 0
js/fileinput.min.js


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません