luci-base: improve tab hide logic
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 10:23:07 +0000 (11:23 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 10:23:11 +0000 (11:23 +0100)
commitbe8dba57a9824179a6b942e27e7203d0ba921129
tree2cbaae9f248e87fb0165ffda1fb27f0de6fd3b38
parent1600b600dddc1a563e421dbbc39764766aa8639a
luci-base: improve tab hide logic

Do not rely on explicit child counts but inspect the code instead to decide
when to hide tabs or not.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/view/cbi/tabmenu.htm