Przeglądaj źródła

fix index value previewCache set

dobrou 9 lat temu
rodzic
commit
1a66809000
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      js/fileinput.js

+ 1 - 1
js/fileinput.js

@@ -142,7 +142,7 @@
                 data.config[index] = config;
                 data.tags[index] = tags;
             } else {
-                index = content.length;
+                index = content.length - 1;
                 data.content = content;
                 data.config = config;
                 data.tags = tags;