5,953
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
function TLPExpand(x) { | function TLPExpand(x) { | ||
var y = document.getElementById(x); | var y = document.getElementById(x); | ||
var z = document.getElementById("tlp-button-text-"+x); | |||
if (y.style.display === "block") { | if (y.style.display === "block") { | ||
y.style.display = "none"; | y.style.display = "none"; | ||
z.innerHTML = "Expand"; | |||
} else { | } else { | ||
y.style.display = "block"; | y.style.display = "block"; | ||
z.innerHTML = "Collapse"; | |||
} | } | ||
} | } |