summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cbi/htdocs')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js
index 7ba81189ee..08ee593356 100644
--- a/libs/cbi/htdocs/luci-static/resources/cbi.js
+++ b/libs/cbi/htdocs/luci-static/resources/cbi.js
@@ -65,9 +65,9 @@ function cbi_d_check(deps) {
var istat = true;
reverse = false;
for (var j in deps[i]) {
- if (j.slice(-8) == "!reverse") {
+ if (j == "!reverse") {
reverse = true;
- } else if (j.slice(-8) == "!default") {
+ } else if (j == "!default") {
def = true;
istat = false;
} else {