summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfohooks.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-12-06 11:40:55 +0100
committerSimon Rettberg2022-12-06 11:40:55 +0100
commit51049ea72c6102bc499832a638787305063c2420 (patch)
tree9c71b085a2b12199c7d7e03e80ec41d817d4284a /modules-available/locationinfo/inc/locationinfohooks.inc.php
parent[locationinfo] Minor JS tweaks (diff)
downloadslx-admin-51049ea72c6102bc499832a638787305063c2420.tar.gz
slx-admin-51049ea72c6102bc499832a638787305063c2420.tar.xz
slx-admin-51049ea72c6102bc499832a638787305063c2420.zip
[locationinfo] Add Slider to configure browser zoom in URL panel
Closes #3915
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfohooks.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfohooks.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php
index 9f8a27dd..ee46260a 100644
--- a/modules-available/locationinfo/inc/locationinfohooks.inc.php
+++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php
@@ -72,6 +72,9 @@ class LocationInfoHooks
if ($data['allow-tty'] === 'yes' || $data['allow-tty'] === 'no') {
ConfigHolder::add('SLX_TTY_SWITCH', $data['allow-tty'], 1000);
}
+ if (($data['zoom-factor'] ?? 100) != 100) {
+ ConfigHolder::add('SLX_BROWSER_ZOOM', $data['zoom-factor']);
+ }
} else {
// Not URL panel
ConfigHolder::add('SLX_BROWSER_URL', 'http://' . $_SERVER['SERVER_ADDR'] . '/panel/' . $panelUuid);