mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-22 12:48:10 -05:00
Update js/bootstrap-fileupload.js
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)){
This commit is contained in:
2
js/bootstrap-fileupload.js
vendored
2
js/bootstrap-fileupload.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user