diff options
Diffstat (limited to 'libs/cbi/htdocs')
-rw-r--r-- | libs/cbi/htdocs/luci-static/resources/cbi.js | 6 |
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 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; |