projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Overall CBI improvements: DummyValue handling, dependency conflicts, ...
[project/luci.git]
/
libs
/
cbi
/
htdocs
/
luci-static
/
resources
/
cbi.js
diff --git
a/libs/cbi/htdocs/luci-static/resources/cbi.js
b/libs/cbi/htdocs/luci-static/resources/cbi.js
index
eb2420a
..
2c7f99f
100644
(file)
--- a/
libs/cbi/htdocs/luci-static/resources/cbi.js
+++ b/
libs/cbi/htdocs/luci-static/resources/cbi.js
@@
-26,11
+26,9
@@
function cbi_d_add(field, dep, next) {
function cbi_d_checkvalue(target, ref) {
var t = document.getElementById(target);
- var value
+ var value
;
- if (!t) {
- return true
- } else if (!t.value) {
+ if (!t || !t.value) {
value = "";
} else {
value = t.value;