CBI:
authorSteven Barth <steven@midlink.org>
Mon, 23 Nov 2009 13:19:53 +0000 (13:19 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 23 Nov 2009 13:19:53 +0000 (13:19 +0000)
Ensure revalidation

libs/cbi/htdocs/luci-static/resources/cbi.js

index 08ee593356eb3570cf02cc94a62753ff1b581cb5..bbea0f37da4afe49bb2b5ef3a108b561d6021df6 100644 (file)
@@ -91,7 +91,7 @@ function cbi_d_update() {
 
                if (node && node.parentNode && !cbi_d_check(entry.deps)) {
                        node.parentNode.removeChild(node);
-                       state = (state || !node.parentNode);
+                       state = true;
                        if( entry.parent )
                                cbi_c[entry.parent]--;
                } else if ((!node || !node.parentNode) && cbi_d_check(entry.deps)) {
@@ -100,7 +100,7 @@ function cbi_d_update() {
                        } else {
                                next.parentNode.insertBefore(entry.node, next);
                        }
-                       state = (state || (node && node.parentNode))
+                       state = true;
                        if( entry.parent )
                                cbi_c[entry.parent]++;
                }