From: Jo-Philipp Wich Date: Sat, 10 Oct 2009 22:18:50 +0000 (+0000) Subject: libs/cbi: fix dynamic tab hiding X-Git-Tag: 0.10.0~1087 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=42e1f743b394c95637b99feac7a93161c5215381;p=oweals%2Fluci.git libs/cbi: fix dynamic tab hiding --- diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index f708d0f7f..004e12eaa 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -36,9 +36,6 @@ function cbi_d_add(field, dep, next) { "deps": [] }; cbi_d.unshift(entry); - - if( entry.parent ) - cbi_c[entry.parent] = (cbi_c[entry.parent] || 0) + 1; } entry.deps.push(dep) } diff --git a/libs/cbi/luasrc/view/cbi/tabmenu.htm b/libs/cbi/luasrc/view/cbi/tabmenu.htm index 5cd5c76aa..7648fe011 100644 --- a/libs/cbi/luasrc/view/cbi/tabmenu.htm +++ b/libs/cbi/luasrc/view/cbi/tabmenu.htm @@ -16,6 +16,7 @@ $Id$