MediaWiki:Tabs.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 15: Line 15:
var tabs = getChildrenByTagName(tabcontents[i], "UL");
var tabs = getChildrenByTagName(tabcontents[i], "UL");
for( var j = 0; j < tabs.length; ++j ) {
for( var j = 0; j < tabs.length; ++j ) {
var tab = tabs[j].firstChild);
var tab = tabs[j].firstChild;
/* Remove the now empty tabcontents ul */
/* Remove the now empty tabcontents ul */
tabcontents[i].removeChild(tabs[j]);
tabcontents[i].removeChild(tabs[j]);