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:
90c52a1
)
luci-base: form.js: treat inactive options as optional
author
Jo-Philipp Wich
<jo@mein.io>
Mon, 7 Oct 2019 17:44:22 +0000
(19:44 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Mon, 7 Oct 2019 17:44:22 +0000
(19:44 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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 46f1ff4825680cb7ea732bffba05bca9743b76af..d5f9fe3c5203a3cf62504fd334773ca9a45f075f 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/form.js
@@
-834,7
+834,7
@@
var CBIAbstractValue = CBINode.extend({
return Promise.resolve(this.write(section_id, fval));
}
else {
- if (this.rmempty || this.optional) {
+ if (
!active ||
this.rmempty || this.optional) {
return Promise.resolve(this.remove(section_id));
}
else if (!isEqual(cval, fval)) {