summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/htdocs/luci-static
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-19 10:42:02 +0000
committerSteven Barth <steven@midlink.org>2008-09-19 10:42:02 +0000
commit712424dc0cf17a60f3d77024b892cc04146f6295 (patch)
tree63677bdcfedf5088b0522543c39136e206f14e93 /libs/cbi/htdocs/luci-static
parent7d0ebeb7d008e49de31ce825be79371ba394a874 (diff)
Overall CBI improvements: DummyValue handling, dependency conflicts, ...
Diffstat (limited to 'libs/cbi/htdocs/luci-static')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js
index eb2420a1c..2c7f99f06 100644
--- 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;