summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/cbi.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index 3e71f17a6e..2274610705 100644
--- a/modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js
@@ -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') {