git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
6f688a3
)
luci-base: cbi: optimize tab hide logic
author
Jo-Philipp Wich
<redacted>
Tue, 19 Jan 2016 09:36:42 +0000
(10:36 +0100)
committer
Jo-Philipp Wich
<redacted>
Tue, 19 Jan 2016 09:36:54 +0000
(10:36 +0100)
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index 3e71f17a6e79138da8a3fb1d1f666141cc3f1f74..227461070565607c1186321c5c8ce1262ddc95b7 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') {
git clone https://git.99rst.org/PROJECT