projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f475a6c
)
luci2: logic fix for initial state of CheckBoxValue widgets
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 9 Oct 2013 18:59:58 +0000
(18:59 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 9 Oct 2013 18:59:58 +0000
(18:59 +0000)
luci2/htdocs/luci2/luci2.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index 3f995654b37f44462f92bb541645d1e6820232b2..94bd4b07bf502d39b632772fc9987eb901779099 100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-3612,12
+3612,10
@@
function LuCI2()
if (chg)
{
- val = val ? this.options.enabled : this.options.disabled;
-
if (this.options.optional && val == this.options.initial)
this.map.set(uci.config, uci.section, uci.option, undefined);
else
- this.map.set(uci.config, uci.section, uci.option, val);
+ this.map.set(uci.config, uci.section, uci.option, val
? this.options.enabled : this.options.disabled
);
}
return chg;