浏览代码

Fix #1479: Updated methods `addToStack`, `clearFileStack` and removed `updateStack`

Kartik Visweswaran 5 年之前
父节点
当前提交
98fec1ca65
共有 3 个文件被更改,包括 10 次插入0 次删除
  1. 7 0
      CHANGE.md
  2. 3 0
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 7 - 0
CHANGE.md

@@ -5,6 +5,13 @@ Change Log: `bootstrap-fileinput`
 
 **Date:** _under development_
 
+- (enh #1479): Methods updated:
+   - Include `addToStack` method.
+   - Remove `updateStack` method
+   - Rename `clearStack` to `clearFileStack` method
+- (enh #1478): Update Slovak Translations.
+- (enh #1477): Update Czech Translations.
+- (enh #1476): Update Hungarian Translations.
 - (enh #1475): Prevent invalid thumb validation when `showPreview` is `false`.
 - (enh #1474): Hide upload icon for file validation errors.
 - (enh #1471): Improve pt-PT and pt-BR translations.

+ 3 - 0
js/fileinput.js

@@ -4727,6 +4727,9 @@
                 (dExts.length && $h.compare(name, expDisExt)) || (maxSize && !isNaN(maxSize) && size > maxSize);
             return !skipPreview && (allowedTypes || allowedMimes || allowedExts);
         },
+        addToStack: function (file, id) {
+            this.fileManager.add(file, id);
+        },
         clearFileStack: function () {
             var self = this;
             self.fileManager.clear();

文件差异内容过多而无法显示
+ 0 - 0
js/fileinput.min.js


部分文件因为文件数量过多而无法显示