Explorar o código

Fix #1152: Correct preview cache splicing

Kartik Visweswaran %!s(int64=7) %!d(string=hai) anos
pai
achega
af82b08729
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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;

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
js/fileinput.min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio