mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
ui core: enableSelection, disableSelection: Removed selectstart event filters from enableDisable and disableSelection as these are general utility convenience methods intended to prevent native browser text selection not jQuery UI Selectable selection. Fixes #5477 - core: enableSelection and disableSelection should only prevent native browser text selection
This commit is contained in:
parent
9ba45f3b76
commit
d38e20a0d3
6
ui/jquery.ui.core.js
vendored
6
ui/jquery.ui.core.js
vendored
@ -118,15 +118,13 @@ $.fn.extend({
|
|||||||
enableSelection: function() {
|
enableSelection: function() {
|
||||||
return this
|
return this
|
||||||
.attr('unselectable', 'off')
|
.attr('unselectable', 'off')
|
||||||
.css('MozUserSelect', '')
|
.css('MozUserSelect', '');
|
||||||
.unbind('selectstart.ui');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
disableSelection: function() {
|
disableSelection: function() {
|
||||||
return this
|
return this
|
||||||
.attr('unselectable', 'on')
|
.attr('unselectable', 'on')
|
||||||
.css('MozUserSelect', 'none')
|
.css('MozUserSelect', 'none');
|
||||||
.bind('selectstart.ui', function() { return false; });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
scrollParent: function() {
|
scrollParent: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user