Skip to main content

Bug Tracker

Side navigation

#2552 closed bug (invalid)

Opened March 19, 2008 10:29AM UTC

Closed December 05, 2009 04:20AM UTC

UI Plugins - disabled option, with getter and setter

Reported by: rworth Owned by: paul
Priority: undecided Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: disabled Cc:
Blocked by: Blocking:
Description

For any UI plugin that can be disabled, in addition to two convenience methods (enable, disable), there should be an option: disabled, available at init, with a getter and setter. Ex:

$(el).draggable({disabled: true});

assert($(el).data("disabled.draggable") == true);

$(el).data("enable");

assert($(el).data("disabled.draggable") == false);

$(el).data("disable");

assert($(el).data("disabled.draggable") == true);

Attachments (0)
Change History (8)

Changed March 25, 2008 03:49PM UTC by paul comment:1

resolution: → fixed
status: newclosed

Done!

Changed March 26, 2008 05:02PM UTC by rworth comment:2

resolution: fixed
status: closedreopened

This also needs to be done for:

resizable

selectable

slider

tabs

Changed April 17, 2008 01:02PM UTC by paul comment:3

owner: paulbraeker
status: reopenednew

Eduardo, could you do this for the other modules?

Changed May 04, 2008 01:51PM UTC by scott.gonzal comment:4

Using the widget factory will automatically add the enable/disable methods.

Changed May 04, 2008 06:02PM UTC by paul comment:5

owner: braekerpaul
status: newassigned

Changed May 04, 2008 08:08PM UTC by paul comment:6

resolution: → fixed
status: assignedclosed

DONE!

Changed May 16, 2008 04:15PM UTC by scott.gonzal comment:7

resolution: fixed
status: closedreopened

Slider, selectable and resizable all use this.disabled instead of this.options.disabled.

Changed December 05, 2009 04:20AM UTC by john comment:8

resolution: → invalid
status: reopenedclosed