From: Steven Barth Date: Mon, 23 Nov 2009 13:19:53 +0000 (+0000) Subject: CBI: X-Git-Tag: 0.10.0~924 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=840d8c89b582e89824982d5388af761062e8e7b3;p=oweals%2Fluci.git CBI: Ensure revalidation --- diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 08ee59335..bbea0f37d 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -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]++; }