Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3174 closed enhancement (fixed)

Return on enableSelection and disableSelection

Reported by: jneal@… Owned by: paul
Priority: minor Milestone: 1.6rc2
Component: ui.core Version: 1.5.2
Keywords: enableSelection, disableSelection Cc: jneal@…
Blocked by: Blocking:


The enableSelection and disableSelection functions return nothing, and it would be nice if they returned the jQuery selector so that they can support further function chaining. Adding the return would be as simple as...

disableSelection: function(el) {

return $(el).attr('unselectable', 'on').css('MozUserSelect', 'none');

}, enableSelection: function(el) {

return $(el).attr('unselectable', 'off').css('MozUserSelect', );


Oh, wouldn't it be nice?


Change History (5)

comment:1 Changed 9 years ago by Cloudream

  • Milestone set to TDB
  • Priority changed from major to minor

comment:2 Changed 9 years ago by paul

Good idea, thanks! Implemented in r690.

comment:3 Changed 9 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 8 years ago by rdworth

  • Milestone changed from TBD to 1.6rc2

comment:5 Changed 8 years ago by FDisk

could you please add suport for Opera browsers?

Note: See TracTickets for help on using tickets.