diff options
author | Steffen Ritter | 2020-02-05 13:48:47 +0100 |
---|---|---|
committer | Steffen Ritter | 2020-02-05 13:48:47 +0100 |
commit | b2798e8a80f7a395027c65ea2905a773d45a6be8 (patch) | |
tree | af71e8c5711981ec39a29f4e3fc026841d725561 /modules-available/locationinfo/templates | |
parent | [serversetup-bwlp-ipxe] Quick fix for hotkey default (diff) | |
download | slx-admin-b2798e8a80f7a395027c65ea2905a773d45a6be8.tar.gz slx-admin-b2798e8a80f7a395027c65ea2905a773d45a6be8.tar.xz slx-admin-b2798e8a80f7a395027c65ea2905a773d45a6be8.zip |
[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.
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r-- | modules-available/locationinfo/templates/page-config-panel-url.html | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ </div> <div class="col-sm-7"> <div class="checkbox"> - <input id="split-login" type="checkbox" name="split-login" {{split-login_checked}} value="1"> + <input id="split-login" type="checkbox" onclick="splitLoginChange()" name="split-login" {{split-login_checked}} value="1"> <label></label> </div> </div> @@ -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(); |