Ticket #3174 (closed enhancement: fixed)

Opened 18 months ago

Last modified 6 months ago

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@…

Description

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?

Jonathan

Change History

Changed 18 months ago by Cloudream

  • priority changed from major to minor
  • milestone set to TDB

Changed 17 months ago by paul

Good idea, thanks! Implemented in r690.

Changed 17 months ago by paul

  • status changed from new to closed
  • resolution set to fixed

Changed 15 months ago by rdworth

  • milestone changed from TBD to 1.6rc2

Changed 6 months ago by FDisk

could you please add suport for Opera browsers?

Note: See TracTickets for help on using tickets.