diff --git a/static/archive.js b/static/archive.js index 5109286..f11fcce 100755 --- a/static/archive.js +++ b/static/archive.js @@ -6,11 +6,6 @@ var $chatArea = document.getElementById("chatarea"); var $selHub = document.getElementById("selHub"); var $frmHub = document.getElementById("frmHub"); -function toggle_element(id) { - var e = document.getElementById(id); - e.style.display = (e.style.display == 'none') ? 'block' : 'none'; -} - function urldesc(s) { return decodeURIComponent(s.replace(/\+/g, " ")); } @@ -67,9 +62,8 @@ function fontSize(change) { } function toggleMenu() { - toggle_element("tr1"); - toggle_element("tr2"); - toggle_element("spm"); + var $container = document.getElementById("menu-container"); + $container.style.display = ($container.style.display == 'block') ? 'none' : 'block'; } function highlightLine(no) {