diff --git a/js/bootstrap-fileupload.js b/js/bootstrap-fileupload.js index 1fd2e5f2..64f66f6b 100644 --- a/js/bootstrap-fileupload.js +++ b/js/bootstrap-fileupload.js @@ -101,7 +101,7 @@ this.$input.attr('name', '') //ie8+ doesn't support changing the value of input with type=file so clone instead - if($.browser.msie){ + if (navigator.userAgent.match(/msie/i)){ var inputClone = this.$input.clone(true); this.$input.after(inputClone); this.$input.remove();