Opened 12 years ago

Closed 12 years ago

#2552 closed bug (fixed)

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);

Change History (12)

comment:1 Changed 12 years ago by paul

Resolution: fixed
Status: newclosed

Done!

comment:2 Changed 12 years ago by rdworth

Resolution: fixed
Status: closedreopened

This also needs to be done for:

resizable selectable slider tabs

comment:3 Changed 12 years ago by paul

Owner: changed from paul to braeker
Status: reopenednew

Eduardo, could you do this for the other modules?

comment:4 Changed 12 years ago by Scott González

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

comment:5 Changed 12 years ago by paul

Owner: changed from braeker to paul
Status: newassigned

comment:6 Changed 12 years ago by paul

Resolution: fixed
Status: assignedclosed

DONE!

comment:7 Changed 12 years ago by Scott González

Resolution: fixed
Status: closedreopened

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

comment:8 Changed 12 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:9 Changed 12 years ago by paul

Milestone: 1.5
Version: 1.2.31.5b4

comment:10 Changed 12 years ago by paul

Resolution: fixed
Status: reopenedclosed

comment:11 Changed 12 years ago by Scott González

Resolution: fixed
Status: closedreopened

Slider still uses this.disabled.

comment:12 Changed 12 years ago by Scott González

Resolution: fixed
Status: reopenedclosed

Fixed in r146.

Note: See TracTickets for help on using tickets.