From b2798e8a80f7a395027c65ea2905a773d45a6be8 Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Wed, 5 Feb 2020 13:48:47 +0100 Subject: [locationinfo] Force interactive if split-login If we use split-login, users need the possibility to close the browser session. Chromiums non-interactive kiosk mode is always fullscreen without an clickable breakout. So if split-login is used in combination with chromium, we force interactive mode. slx-browser has no interactive mode, so doesn't make any difference. --- .../locationinfo/templates/page-config-panel-url.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules-available/locationinfo/templates/page-config-panel-url.html b/modules-available/locationinfo/templates/page-config-panel-url.html index 86915729..2deb32b1 100644 --- a/modules-available/locationinfo/templates/page-config-panel-url.html +++ b/modules-available/locationinfo/templates/page-config-panel-url.html @@ -115,7 +115,7 @@
- +
@@ -248,6 +248,14 @@ function browserChange() { } } +function splitLoginChange() { + if($("#split-login").is(':checked')) { + $("#interactive").prop('checked', true).prop('disabled', true); + } else { + $("#interactive").prop('disabled', false); + } +} + // Add another bookmark input field to the form function addBookmark() { var rowCopy = $('#bookmarkRow').clone(); -- cgit v1.2.3-55-g7522