projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335692a
)
luci-base: form.js: fix immediate validation of activated options
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 15 Jan 2020 17:52:16 +0000
(18:52 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 16 Jan 2020 08:06:53 +0000
(09:06 +0100)
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>
(cherry picked from commit
77c2998f32caccac52a885e84bb6357a9799ebca
)
modules/luci-base/htdocs/luci-static/resources/form.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/form.js
b/modules/luci-base/htdocs/luci-static/resources/form.js
index 180cd61a6d3e959479b8d0dc3884b7168fae18a7..8d673a877e4b247a2c481941f1ed6f38975be296 100644
(file)
--- 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;
}