浏览代码

Event to catch when the file input changes to an empty state.

Jesper Jonsson 10 年之前
父节点
当前提交
bf049c082a
共有 2 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 1 - 0
js/fileinput.js

@@ -698,6 +698,7 @@
                 tfiles = e.target.files;
             }
             if (tfiles.length === 0) {
+                $el.trigger('fileselectnone');
                 return;
             }
             self.resetErrors();

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


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