mirror of
https://github.com/openwrt/luci.git
synced 2026-08-28 05:46:45 +04:00
luci-base: cbi: optimize tab hide logic
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -947,9 +947,8 @@ function cbi_t_update() {
|
||||
{
|
||||
var t = cbi_t[sid][tid].tab;
|
||||
var c = cbi_t[sid][tid].container;
|
||||
var n = c.getElementsByTagName('div');
|
||||
|
||||
if (n.length === 0) {
|
||||
if (!c.firstElementChild) {
|
||||
t.style.display = 'none';
|
||||
}
|
||||
else if (t.style.display == 'none') {
|
||||
|
||||
Reference in New Issue
Block a user