Tabs: Ticket #4386 Fix enable and disable methods when index is undefined. #162

Merged
merged 1 commit into from Mar 21, 2011

Conversation

Projects
None yet
2 participants
Member

petersendidit commented Mar 21, 2011

.tabs("disable") and .tabs("enable") doesn't work. This change fixes the 2 methods so that when index is undefined it disables/enables all tabs (expect for the current selected tab).

It also sets option.disabled to true/false when the tabs are fully enabled/disabled.

And per decision with Scott (and forum post http://forum.jquery.com/topic/tabs-api-redesign#14737000002089057) you can disabled the selected tab now.

Also added some tests for this.

http://bugs.jqueryui.com/ticket/4386

Tabs: Fix disable and enable methods to correctly handle when index i…
…s undefined. Use boolean when fully enabled/disabled. Allow selected tab to be disabled.Fixes #4386

@scottgonzalez scottgonzalez merged commit 710d762 into jquery:master Mar 21, 2011

Owner

scottgonzalez commented Mar 21, 2011

Thanks, merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment