diff options
author | piernov <piernov@piernov.org> | 2016-05-07 13:31:49 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-07 13:32:27 +0200 |
commit | 8621eae6aa5fcdba0a60f0a5f1136412c61999ec (patch) | |
tree | 40923d48a0948c807fa87f118497cf6b60f77cbc /js | |
parent | 25556ed4765a897996fba7fb4b0776f043d47cb9 (diff) | |
download | candybox-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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |