Browse Source

Fix #18: Graceful degradation for IE8

Kartik Visweswaran 10 năm trước cách đây
mục cha
commit
697e395e01
2 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
         }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
js/fileinput.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác