projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: cbi: optimize tab hide logic
[project/luci.git]
/
modules
/
luci-base
/
htdocs
/
luci-static
/
resources
/
cbi.js
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index
3e71f17
..
2274610
100644
(file)
--- 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') {