From 75f545982cf74363125b24c30bc227bdb79658eb Mon Sep 17 00:00:00 2001 From: Ameya Bhatawdekar Date: Sun, 27 Jan 2013 17:22:01 -0800 Subject: [PATCH] Update js/bootstrap-fileupload.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support for jquery.browser was removed in 1.9. This caused the "Remove" button to not work.  Changed line 103 from     if($.browser.msie){ to     if (navigator.userAgent.match(/msie/i)){ --- js/bootstrap-fileupload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-fileupload.js b/js/bootstrap-fileupload.js index b547661c..e4dc64bd 100644 --- a/js/bootstrap-fileupload.js +++ b/js/bootstrap-fileupload.js @@ -100,7 +100,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();