Skip to content

Commit

Permalink
Fix #18: Graceful degradation for IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Aug 8, 2014
1 parent 64a41ce commit 697e395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 697e395

Please sign in to comment.