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

merged 1 commit into from Mar 21, 2011


None yet
2 participants

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 you can disabled the selected tab now.

Also added some tests for this.

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


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