summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-02-01 18:08:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-02-01 18:08:36 +0000
commit1d7e7f5ddeb63bef1f7425798102a219afea4ffc (patch)
tree9342357b160d3918e3950da94ecd8f91e2276116
parent8054344747e63d78b79cc3ba58287febf4b78e46 (diff)
downloadluci2-ui-1d7e7f5ddeb63bef1f7425798102a219afea4ffc.tar.gz
luci2: Hide empty tabs when rendering cbi maps
-rw-r--r--luci2/htdocs/luci2/luci2.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js
index 996c18d..30e3063 100644
--- a/luci2/htdocs/luci2/luci2.js
+++ b/luci2/htdocs/luci2/luci2.js
@@ -6841,6 +6841,9 @@ function LuCI2()
if (cur == tab_index)
tabh.addClass('active');
+ if (!tab.fields.length)
+ tabh.hide();
+
return tabh;
},