summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-15 18:52:16 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-15 18:52:16 +0100
commit77c2998f32caccac52a885e84bb6357a9799ebca (patch)
treeecdb28bf218e0fa19f57975a92f6d0992ab8f893 /modules/luci-base/htdocs/luci-static/resources
parent30cba86db54715d79b567aa88c0261b060aea09f (diff)
luci-base: form.js: fix immediate validation of activated options
When form options are activated because their dependencies are satisified, ensure that an immediate validation is triggered to highlight potential errors without having the user to activate another form control first. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 180cd61a6d..8d673a877e 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -584,6 +584,7 @@ var CBIAbstractSection = CBINode.extend({
if (isActive != isSatisified) {
o.setActive(sid, !isActive);
+ isActive = !isActive;
changed = true;
}