From 5d54b83e1b9a74489970855e42d27691b471d900 Mon Sep 17 00:00:00 2001 From: Roland Stigge Date: Mon, 12 Feb 2018 18:51:41 +0100 Subject: Logout function only if logged in --- html/index.html | 2 +- html/webbox.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index 80fa1d8..d33d678 100644 --- a/html/index.html +++ b/html/index.html @@ -47,7 +47,7 @@ Rename Info Select/Unselect All - Logout + Logout Close Menu diff --git a/html/webbox.js b/html/webbox.js index a564859..17ec25a 100644 --- a/html/webbox.js +++ b/html/webbox.js @@ -306,6 +306,10 @@ function initMainpage() { if (authheader.startsWith("SR_Basic realm=\"") && authheader.endsWith("\"")) { title = authheader.substr(16, authheader.length - 17); } + + // enable logout function if logging in + document.getElementById("logoutcommand").style.display = "table-row"; + login(title); return; } else -- cgit v1.2.3