docs/autodocs/source/aibs_sphinx/static/external_assets/javascript/portal.js
/*  
 Set the visual state of the current page's tab.
 NOTE that whenever we select a tab we have just loaded a new page,
 so I'm not worrying about UNselecting anything here.
 */
Set the visual state of the current page's tab.
NOTE that whenever we select a tab we have just loaded a new page,
so I'm not worrying about UNselecting anything here.
Set the visual state of the current page ' s tab . NOTE that whenever we select a tab we have just loaded a new page so I ' m not worrying about UNselecting anything here .
function _pSetSelectedTab(tab_id) {
    var tab = document.getElementById(tab_id);
    if (_pIsTopLevelTab[tab_id]) {
        tab.parentNode.className += " portal_tab_active";
    }
    else {
        tab.parentNode.className += " portal_menu_item_active";
        var title = document.getElementById("pMenuTitle");
        title.innerHTML = _pTabNames[tab_id];
        title.parentNode.className += " portal_menu_active";
    }
    return (tab);
}
function _pSetSelectedTab ( tab_id ) { var tab = document . getElementById ( tab_id ) ; if ( _pIsTopLevelTab [ tab_id ] ) { tab . parentNode . className += " portal_tab_active" ; } else { tab . parentNode . className += " portal_menu_item_active" ; var title = document . getElementById ( "pMenuTitle" ) ; title . innerHTML = _pTabNames [ tab_id ] ; title . parentNode . className += " portal_menu_active" ; } return ( tab ) ; }
Set the visual state of the current page's tab.
Set the visual state of the current page ' s tab .
// nav item sare being treated differently depending on whether they are // top-level tabs or flyout menu items. // top-level tabs are simple, add the class that // (currently) just changes the color of the text. // In this case we want to change the text of the menu header // to show the current selection, as well as highlight // the item that's selected in the flyout.