diff options
author | Christian Hofmaier | 2019-06-04 14:04:59 +0200 |
---|---|---|
committer | Christian Hofmaier | 2019-06-04 14:04:59 +0200 |
commit | 52db24f6320270c8493bbb3330ad04c53a791ae3 (patch) | |
tree | 17a5e22ec156dc8979fa7ea57df63df879e0a791 /modules-available | |
parent | [news] Update translations (diff) | |
download | slx-admin-52db24f6320270c8493bbb3330ad04c53a791ae3.tar.gz slx-admin-52db24f6320270c8493bbb3330ad04c53a791ae3.tar.xz slx-admin-52db24f6320270c8493bbb3330ad04c53a791ae3.zip |
[locationinfo] fix bug override not loading correctly into edit menu
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/templates/page-config-panel-default.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/templates/page-config-panel-default.html b/modules-available/locationinfo/templates/page-config-panel-default.html index f6e688fa..43a7db44 100644 --- a/modules-available/locationinfo/templates/page-config-panel-default.html +++ b/modules-available/locationinfo/templates/page-config-panel-default.html @@ -511,7 +511,7 @@ document.addEventListener("DOMContentLoaded", function () { var scale = $('#override' + id + 'scale'); if (overrides !== null && overrides[id] !== undefined) { $('#override' + id + 'mode').val(overrides[id].mode); - $('#override' + id + 'roomplanner').val(overrides[id].roomplanner); + $('#override' + id + 'roomplanner').val(overrides[id].roomplanner ? 1 : 0); if (overrides[id].vertical) $('#override' + id + 'vertical').bootstrapSwitch('state', true); if (overrides[id].scaledaysauto) $('#override' + id + 'scaledaysauto').bootstrapSwitch('state', true); $('#override' + id + 'daystoshow').val(overrides[id].daystoshow); |