Browse Source

Fix #18: Graceful degradation for IE8

Kartik Visweswaran 10 years ago
parent
commit
697e395e01
2 changed files with 1 additions and 1 deletions
  1. 1 1
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 1 - 1
js/fileinput.js

@@ -616,7 +616,7 @@
      * into a bootstrap fileinput control.
      */
     $(document).ready(function () {
-        var $input = $('input.file[type=file]'), count = Object.keys($input).length;
+        var $input = $('input.file[type=file]'), count = $input.attr('type') != null ? $input.length : 0;
         if (count > 0) {
             $input.fileinput();
         }

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