YAHOO.moodle.navigation.tabpanel = new navigation_tab_panel();
}
YAHOO.moodle.navigation.tabpanel.add_to_tab_panel(this.name, tabtitle, tabcontent, tabcommands);
+ set_user_preference('nav_in_tab_panel_'+this.name, 1);
return true;
}
/**
while (!YAHOO.util.Dom.hasClass(block, 'sideblock')) {
block = block.parentNode;
}
+ set_user_preference('nav_in_tab_panel_'+this.name, 0);
return true;
}
this.tabcount++;
YAHOO.util.Event.addListener(sidetab, "mouseover", this.show_tab, tabname, this);
-
- set_user_preference('nav_in_tab_panel_'+tabname, 1);
}
/**
* This function handles checking the size, and positioning of the navigaiton
* @return {bool}
*/
navigation_tab_panel.prototype.remove_from_tab_panel = function(tabname) {
- set_user_preference('nav_in_tab_panel_'+tabname, 0);
var tab = document.getElementById(tabname+'_sidebarpopup');
if (!tab) {
return false;