瀏覽代碼

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();

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff