Lines Matching refs:tab
25 * Shows the tab contents for the given navigation tab.
26 * @param {Node} tab The tab that the user clicked.
28 showTab: function(tab) {
29 // Search parents until we find a tab, or the nav bar itself. This allows
31 while (tab && tab.classList &&
32 !tab.classList.contains('subpages-nav-tabs') &&
33 !tab.classList.contains('tab')) {
34 tab = tab.parentNode;
36 if (!tab || !tab.classList || !tab.classList.contains('tab'))
39 // Find tab bar of the tab.
40 var tabBar = tab;
49 tabBar.activeNavTab.classList.remove('active-tab');
50 $(tabBar.activeNavTab.getAttribute('tab-contents')).classList.
51 remove('active-tab-contents');
54 tab.classList.add('active-tab');
55 $(tab.getAttribute('tab-contents')).classList.add('active-tab-contents');
56 tabBar.activeNavTab = tab;