diff options
author | Steffen Ritter | 2021-10-21 10:01:47 +0200 |
---|---|---|
committer | Steffen Ritter | 2021-10-21 10:01:47 +0200 |
commit | aeaae562945e29c083642b114f2023f4272ca147 (patch) | |
tree | 648cbd9d3962bb5ea1a0b87832bb539cd041ef52 /modules-available | |
parent | [style/default.css] Adjust selectized.js disabled styling (diff) | |
download | slx-admin-aeaae562945e29c083642b114f2023f4272ca147.tar.gz slx-admin-aeaae562945e29c083642b114f2023f4272ca147.tar.xz slx-admin-aeaae562945e29c083642b114f2023f4272ca147.zip |
[baseconfig] Don't reenable shadowed config var
Fixes: #3595
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/baseconfig/templates/_page.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/baseconfig/templates/_page.html b/modules-available/baseconfig/templates/_page.html index ef10ac26..5faff391 100644 --- a/modules-available/baseconfig/templates/_page.html +++ b/modules-available/baseconfig/templates/_page.html @@ -113,15 +113,20 @@ document.addEventListener("DOMContentLoaded", function () { var rules = $this.data('shadows'); if (!rules) return; var currentValue = $this.val(); + const disabled = []; for (var triggerVal in rules) { if (!rules.hasOwnProperty(triggerVal)) continue; var targets = rules[triggerVal]; for (var i = 0; i < targets.length; ++i) { var target = targets[i]; + if (disabled.includes(target)) { + continue; + } var inp = $('#' + target); var selitem = inp.data('selitem'); if (currentValue === triggerVal) { + disabled.push(target); inp.prop('disabled', true); if (selitem) selitem.disable(); inp.filter('.multilist').multiselect('disable'); |