Skip to main content

Search and Top Navigation

#2552 closed bug (fixed)

Opened March 19, 2008 10:29AM UTC

Closed June 05, 2008 03:23AM UTC

UI Plugins - disabled option, with getter and setter

Reported by: rworth Owned by: paul
Priority: blocker Milestone: 1.5
Component: ui.core Version: 1.5b4
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 (12)

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

resolution: → fixed
status: newclosed

Done!

Changed March 26, 2008 05:02PM UTC by rdworth 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 scottgonzalez 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 scottgonzalez comment:7

resolution: fixed
status: closedreopened

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

Changed May 24, 2008 03:39AM UTC by comment:8

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed May 24, 2008 03:44AM UTC by paul comment:9

milestone: → 1.5
version: 1.2.31.5b4

Changed May 25, 2008 09:49PM UTC by paul comment:10

resolution: → fixed
status: reopenedclosed

Changed June 05, 2008 03:11AM UTC by scottgonzalez comment:11

resolution: fixed
status: closedreopened

Slider still uses this.disabled.

Changed June 05, 2008 03:23AM UTC by scottgonzalez comment:12

resolution: → fixed
status: reopenedclosed

Fixed in r146.