5,960
edits
No edit summary |
No edit summary |
||
Line 144: | Line 144: | ||
content.style.display = "none"; | content.style.display = "none"; | ||
button.innerHTML = "Mostrar"; | button.innerHTML = "Mostrar"; | ||
} else { | |||
content.style.display = "block"; | |||
button.innerHTML = "Ocultar"; | |||
} | |||
} | |||
function TLPExpandPt(x) { | |||
var content = document.getElementById('tlp-children-'+x); //outputs something like document.getElementById("tlp-children-1.21") | |||
var button = document.getElementById('tlp-button-text-'+x); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
if (content.style.display == "block") { | |||
content.style.display = "none"; | |||
button.innerHTML = "Expandir"; | |||
} else { | } else { | ||
content.style.display = "block"; | content.style.display = "block"; |