inline the toggle_element function
This commit is contained in:
parent
149e226729
commit
92e7064372
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user