Browse Source

fix index value previewCache set

dobrou 9 years ago
parent
commit
1a66809000
1 changed files with 1 additions and 1 deletions
  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;