MediaWiki:Tabs.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
try removing it first?
mNo edit summary
m (try removing it first?)
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].removeChild(tabs[j].firstChild);
/* Move from tabcontents ul to tab ul */
/* Move from tabcontents ul to tab ul */
destinations[i].firstChild.appendChild(tabs[j].firstChild);
destinations[i].firstChild.appendChild(tab);
console.log(tabs[j].firstChild);
console.log(tab);
console.log(destinations[i].firstChild);
console.log(destinations[i].firstChild);
/* Remove the now empty tabcontents ul */
/* Remove the now empty tabcontents ul */

Navigation menu