diff options
Diffstat (limited to 'public/common/client.js')
-rw-r--r-- | public/common/client.js | 4 |
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 */ |