self._containers[$containerID] = $tabMenu;
$tabMenu.wcfTabs({
active: false,
- select: function(event, ui) {
- var $panel = $(ui.panel);
+ activate: function(event, eventData) {
+ var $panel = $(eventData.newPanel);
var $container = $panel.closest('.tabMenuContainer');
// store currently selected item
location.hash = '#' + $panel.attr('id');
}
- $container.trigger('tabsselect', event, ui);
+ //$container.trigger('tabsbeforeactivate', event, eventData);
}
});
// try to resolve location hash
if (!this._didInit) {
- this.selectTabs();
+ this._selectActiveTab();
$(window).bind('hashchange', $.proxy(this.selectTabs, this));
if (!this._selectErroneousTab()) {
- this._selectActiveTab();
+ this.selectTabs();
}
}
var $tabMenuItem = $(tabMenuItem);
if ($tabMenuItem.wcfIdentify() == $index) {
$tabMenu.wcfTabs('select', innerIndex);
-
if ($subIndex !== null) {
if ($tabMenuItem.hasClass('tabMenuContainer')) {
$tabMenuItem.wcfTabs('selectTab', $tabMenu.data('active'));