Skip to content

Commit

Permalink
multiple select with 'shift' button on Firefox crlcu#143
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Wardziński committed Dec 8, 2017
1 parent 6c48b5a commit 56a9bb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/js/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ if (typeof jQuery === 'undefined') {
var ua = window.navigator.userAgent;
var isIE = (ua.indexOf("MSIE ") + ua.indexOf("Trident/") + ua.indexOf("Edge/")) > -3;
var isSafari = ua.toLowerCase().indexOf("safari") > -1;
var isFirefox = typeof InstallTrigger !== 'undefined';

$.fn.multiselect = function( options ) {
return this.each(function() {
Expand Down Expand Up @@ -716,6 +717,9 @@ if (typeof jQuery === 'undefined') {
$(option).show();
});
}
if(isFirefox){
this.attr('disabled', false)
}

return this;
};
Expand All @@ -731,7 +735,9 @@ if (typeof jQuery === 'undefined') {
}
});
}

if(isFirefox){
this.attr('disabled', true)
}
return this;
};

Expand Down
Loading

0 comments on commit 56a9bb4

Please sign in to comment.