mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
core: enableSelection/disableSelection now return the chain (implements #3174)
This commit is contained in:
parent
9c0942d14f
commit
b73f093894
@ -271,13 +271,13 @@ $.ui = {
|
||||
return $.ui.cssCache[name];
|
||||
},
|
||||
disableSelection: function(el) {
|
||||
$(el)
|
||||
return $(el)
|
||||
.attr('unselectable', 'on')
|
||||
.css('MozUserSelect', 'none')
|
||||
.bind('selectstart.ui', function() { return false; });
|
||||
},
|
||||
enableSelection: function(el) {
|
||||
$(el)
|
||||
return $(el)
|
||||
.attr('unselectable', 'off')
|
||||
.css('MozUserSelect', '')
|
||||
.unbind('selectstart.ui');
|
||||
|
Loading…
Reference in New Issue
Block a user