Search and Top Navigation
#6130 closed bug (worksforme)
Opened September 30, 2010 07:16PM UTC
Closed October 01, 2010 05:41PM UTC
Last modified October 11, 2012 09:15PM UTC
Tabs Demo Overview: Section 3.5 ("...immediately select a just added tab") no longer works.
Reported by: | STW | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | [meta] ui.demos | Version: | 1.8.5 |
Keywords: | tabs demo overview | Cc: | |
Blocked by: | Blocking: |
Description
The current snippet for immediately selecting an added tab is non-functional.
The current snippet is:
var $tabs = $('#example').tabs({
add: function(event, ui) {
$tabs.tabs('select', '#' + ui.panel.id);
}
});
My working snippet is:
var $tabs = $('#example').tabs({
add: function(event, ui) {
$tabs.tabs('select', ui.index);
}
});
Works fine for me.