aboutsummaryrefslogtreecommitdiffstats
path: root/js/gui.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/gui.js')
-rw-r--r--js/gui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/gui.js b/js/gui.js
index 89fa0fa..ee29622 100644
--- a/js/gui.js
+++ b/js/gui.js
@@ -15,7 +15,7 @@ function changeTab() {
function showMessage(type, msg) {
var msg_box = document.getElementById(type+"-box");
msg_box.style.display = "initial";
- var msg_list = msg_box.firstElementChild.firstElementChild.firstElementChild;
+ var msg_list = msg_box.firstElementChild.firstElementChild;
msg_list.innerHTML = "<li>" + msg + "</li>\n" + msg_list.innerHTML;
window.setTimeout(hideMessage.bind(null, type), MESSAGE_TIMEOUT);
@@ -23,7 +23,7 @@ function showMessage(type, msg) {
function hideMessage(type) {
var msg_box = document.getElementById(type+"-box");
- var msg_list = msg_box.firstElementChild.firstElementChild.firstElementChild;
+ var msg_list = msg_box.firstElementChild.firstElementChild;
var item = msg_list.lastElementChild;
msg_list.removeChild(item);