From 97c8b7f21b8aeeda56f68deee8349f381d60eb96 Mon Sep 17 00:00:00 2001 From: Roland Stigge Date: Tue, 9 Jan 2018 22:20:32 +0100 Subject: Fix mobile view, add password config --- html/webbox.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'html/webbox.js') diff --git a/html/webbox.js b/html/webbox.js index dd57966..8612062 100644 --- a/html/webbox.js +++ b/html/webbox.js @@ -240,6 +240,12 @@ function initMainpage() { // default action for "Cancel" button: hide dialog window document.getElementById("cancelbutton").onclick = hideDialog; + // on click outside of menu, close menu + document.getElementById("greyout").onclick = function() { + hideDialog(); + hideMenu(); + } + // on Escape, globally hide dialog and menu window document.onkeydown = function(evt) { if (evt.key == "Escape") { -- cgit v1.2.3