From 1d7e7f5ddeb63bef1f7425798102a219afea4ffc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 1 Feb 2014 18:08:36 +0000 Subject: [PATCH] luci2: Hide empty tabs when rendering cbi maps --- luci2/htdocs/luci2/luci2.js | 3 +++ 1 file changed, 3 insertions(+) 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; }, -- 2.30.2