17,233
edits
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( | destinations[i].firstChild.appendChild(tab); | ||
console.log( | 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 */ |