mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-19 09:34:23 -05:00
enableSelection/disableSelection fixed for ie
This commit is contained in:
@@ -52,10 +52,10 @@ $.ui = {
|
||||
return $.ui.cssCache[name];
|
||||
},
|
||||
disableSelection: function(el) {
|
||||
$(el).attr('unselectable', 'on').css('MozUserSelect', 'none');
|
||||
$(el).attr('unselectable', 'on').css('MozUserSelect', 'none').bind('selectstart', function() { return false; });
|
||||
},
|
||||
enableSelection: function(el) {
|
||||
$(el).attr('unselectable', 'off').css('MozUserSelect', '');
|
||||
$(el).attr('unselectable', 'off').css('MozUserSelect', '').unbind('selectstart');
|
||||
},
|
||||
hasScroll: function(e, a) {
|
||||
var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',
|
||||
|
||||
Reference in New Issue
Block a user