summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-03 00:27:37 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-30 00:24:06 +0100
commit5c4cd1485d4303e8fbdd97a5b32273d8367e5eba (patch)
treeb56c02493c2e9056d77f367ab6c4c8b30c6dc0fa
parent0d170214c21204088254d7502b4bde0fd9a79133 (diff)
downloadserver-5c4cd1485d4303e8fbdd97a5b32273d8367e5eba.tar.gz
Close popup menus if opening another.
-rw-r--r--public/common/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/common/client.js b/public/common/client.js
index 9bbb74f..cf00c33 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -792,9 +792,9 @@ function close_menus(self) {
node.removeAttribute("open")
}
+/* close menu if opening another */
for (let node of document.querySelectorAll("#toolbar > details")) {
- //node.onclick = function () { close_menus(node) }
- //node.onmouseleave = function () { node.removeAttribute("open") }
+ node.onclick = function () { close_menus(node) }
}
/* close menu after selecting something */