Browse Source

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

Jesper Jonsson 10 years ago
parent
commit
bf049c082a
2 changed files with 1 additions and 0 deletions
  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