365
edits
No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
z.style.display = "block"; | z.style.display = "block"; | ||
b.innerHTML = "ocultar"; | b.innerHTML = "ocultar"; | ||
} | |||
} | |||
function drawerExpand(x) { | |||
var y = x; //outputs something like "drawer-1" | |||
var z = document.getElementById(y); //outputs something like document.getElementById("tlp-children-1.21") | |||
// var b = document.getElementById(a); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
if (z.style.display === "block") { | |||
z.style.display = "none"; | |||
// b.innerHTML = "Expand"; | |||
} else { | |||
z.style.display = "block"; | |||
b.innerHTML = "Collapse"; | |||
} | } | ||
} | } |