From 712424dc0cf17a60f3d77024b892cc04146f6295 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 19 Sep 2008 10:42:02 +0000 Subject: Overall CBI improvements: DummyValue handling, dependency conflicts, ... --- libs/cbi/htdocs/luci-static/resources/cbi.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libs/cbi/htdocs') diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index eb2420a1c1..2c7f99f062 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; -- cgit v1.2.3