aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-07 13:31:49 +0200
committerpiernov <piernov@piernov.org>2016-05-07 13:32:27 +0200
commit8621eae6aa5fcdba0a60f0a5f1136412c61999ec (patch)
tree40923d48a0948c807fa87f118497cf6b60f77cbc /js
parent25556ed4765a897996fba7fb4b0776f043d47cb9 (diff)
downloadcandybox-8621eae6aa5fcdba0a60f0a5f1136412c61999ec.tar.gz
candybox-8621eae6aa5fcdba0a60f0a5f1136412c61999ec.tar.bz2
candybox-8621eae6aa5fcdba0a60f0a5f1136412c61999ec.tar.xz
candybox-8621eae6aa5fcdba0a60f0a5f1136412c61999ec.zip
UI improvements
Diffstat (limited to '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);