User:Mike Dillon/Scripts/tabs.js: Difference between revisions

Content deleted Content added
No edit summary
 
move addTab here
Line 1:
// Add a new list item to the page tabs
function addTab(url, name, id, title, key){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
addlilink(tabs, url, name, id, title, key);
 
// Add tab to the bottom if the tabs have been cloned
var bottomTabsContainer = document.getElementById('mytabs');
if (bottomTabsContainer) {
var bottomTabs = bottomTabsContainer.getElementsByTagName('ul')[0];
addlilink(bottomTabs, url, name, id, title, key);
}
}
 
// Add a 'purge' link to the tabs
function addPurge(){