瀏覽代碼

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

文件差異過大導致無法顯示
+ 0 - 0
js/fileinput.min.js


部分文件因文件數量過多而無法顯示