diff options
author | Christian Hofmaier | 2020-10-19 17:48:53 +0200 |
---|---|---|
committer | Christian Hofmaier | 2020-10-19 17:48:53 +0200 |
commit | 967e5c36ba60e7a26f79ee253886a950569bf6d0 (patch) | |
tree | 09d445145fa368abe6654bfad72afbd86266d7e3 /modules-available | |
parent | Merge branch 'master' of git.openslx.org:openslx-ng/slx-admin (diff) | |
download | slx-admin-967e5c36ba60e7a26f79ee253886a950569bf6d0.tar.gz slx-admin-967e5c36ba60e7a26f79ee253886a950569bf6d0.tar.xz slx-admin-967e5c36ba60e7a26f79ee253886a950569bf6d0.zip |
[locationinfo] fix bootstrap-switches override always "on"
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/templates/page-config-panel-default.html | 5 |
1 files changed, 4 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 86e2a520..c502db4e 100644 --- a/modules-available/locationinfo/templates/page-config-panel-default.html +++ b/modules-available/locationinfo/templates/page-config-panel-default.html @@ -541,6 +541,7 @@ document.addEventListener("DOMContentLoaded", function () { $( this ).removeClass('btstrpCheckbox'); if ($( this ).attr('type') === 'range') $( this ).val(overVal ? overrides[locId][oldName] : $('#' + oldId).val()); else if ($( this ).attr('type') === 'checkbox') { + $( this ) .bootstrapSwitch({size: 'small'}) .on('switchChange.bootstrapSwitch', function () { @@ -550,7 +551,9 @@ document.addEventListener("DOMContentLoaded", function () { $('#' + substr + 'daystoshow').prop('disabled', this.checked); } }); - $( this ).bootstrapSwitch('state', overVal ? overrides[locId][oldName] : $('#' + oldId).val()); + + // $( this ).bootstrapSwitch('state', overVal ? overrides[locId][oldName] : $('#' + oldId).val()); + } }); |