Parcourir la source

Fix #1152: Correct preview cache splicing

Kartik Visweswaran il y a 7 ans
Parent
commit
af82b08729
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  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;

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
js/fileinput.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff