5,960
edits
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
function toggleListTable() { | function toggleListTable() { | ||
var x = document.getElementById("all-texts-table"); | var x = document.getElementById("all-texts-table"); | ||
if (x.style.display === "none" | if (x.style.display === "block") { | ||
x.style.display = "none"; | |||
} else { | |||
x.style.display = "block"; | x.style.display = "block"; | ||
} | } | ||
var y = document.getElementById("all-texts-list"); | var y = document.getElementById("all-texts-list"); | ||
if (y.style.display === "block" | if (y.style.display === "none") { | ||
y.style.display = "block"; | |||
} else { | |||
y.style.display = "none"; | y.style.display = "none"; | ||
} | } | ||
/*var i; | /*var i; |