From 8621eae6aa5fcdba0a60f0a5f1136412c61999ec Mon Sep 17 00:00:00 2001 From: piernov Date: Sat, 7 May 2016 13:31:49 +0200 Subject: UI improvements --- js/gui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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 = "
  • " + msg + "
  • \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); -- cgit v1.2.3-70-g09d2