diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-01 18:08:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-01 18:08:36 +0000 |
commit | 1d7e7f5ddeb63bef1f7425798102a219afea4ffc (patch) | |
tree | 9342357b160d3918e3950da94ecd8f91e2276116 /luci2 | |
parent | 8054344747e63d78b79cc3ba58287febf4b78e46 (diff) | |
download | luci2-ui-1d7e7f5ddeb63bef1f7425798102a219afea4ffc.tar.gz |
luci2: Hide empty tabs when rendering cbi maps
Diffstat (limited to 'luci2')
-rw-r--r-- | luci2/htdocs/luci2/luci2.js | 3 |
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; }, |