Enable tab which is disabled at initialization
Hi all,
I have problem similar to earlier questions about this topic, but
never found a good solution. I have the following testcase for four
tabs:
$("#tabs").tabs({
disabled: [1,2,3],
selected: 0});
I connected a click event to an image and in that function I do this
action:
$( '#tabs' ).tabs( 'enable', index );
This fails when index is in the disabled array. It works when the
disabled option is empty. The following I can reproduce:
1) Initializing tabs without any disabled. The enable and disable
methods work perfect
2) Initializing tabs *with some* disabled. Enabling tabs which are at
initialisation disabled won't be enabled. Enabling tabs which are
disabled by hand (and are not listed in the array) can be enabled.
Is it possible to have the opportunity to enable all possible tabs? I
think it's quite stupid to remove them from the disabled list. Instead
of get the list, remove the tab from the list, set the list again and
enable the tab, this should be done at once. Or am I wrong?
Thanks for any advice,
Jurian