diff options
author | Roland Stigge <stigge@antcom.de> | 2018-01-09 22:20:32 +0100 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2018-01-09 22:20:32 +0100 |
commit | 97c8b7f21b8aeeda56f68deee8349f381d60eb96 (patch) | |
tree | 2b9bf848429902071da32a77e55389bc47d38adf /html/webbox.js | |
parent | ffb84def973e117e52555fb06eb9b078040e2849 (diff) |
Fix mobile view, add password configv1.0
Diffstat (limited to 'html/webbox.js')
-rw-r--r-- | html/webbox.js | 6 |
1 files changed, 6 insertions, 0 deletions
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") { |