瀏覽代碼

Fix #18: Graceful degradation for IE8

Kartik Visweswaran 10 年之前
父節點
當前提交
697e395e01
共有 2 個文件被更改,包括 1 次插入1 次删除
  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