#5798 closed bug (duplicate)
function disableSelection not correct(don`t work in all browsers)
Reported by: | Ganster41 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.core | Version: | 1.8.2 |
Keywords: | disableSelection | Cc: | |
Blocked by: | Blocking: |
Description
Functions disable/enableSelection is not correct. It don`t work in webkit and IE. Correct code is:
disableSelection : function() { this.each(function() { this.onselectstart = function() { return false; }; this.unselectable = "on"; jQuery(this).css('-moz-user-select', 'none'); }); }, enableSelection : function() { this.each(function() { this.onselectstart = function() { }; this.unselectable = "off"; jQuery(this).css('-moz-user-select', 'auto'); }); }
Change History (4)
comment:1 Changed 13 years ago by
comment:3 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Currently we have this:
Need to verify where this actually doesn't work. The suggested code looks okay.