mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
Avoid default value style="display:block" in HTML
This change makes the HTML smaller. Change-Id: Ie90eb8c85bb530de634bd190290e9aa303018073
This commit is contained in:
parent
1801504dfb
commit
49453bbfde
|
@ -673,7 +673,7 @@ class CategoryTree {
|
|||
'div',
|
||||
[
|
||||
'class' => 'CategoryTreeChildren',
|
||||
'style' => $children > 0 ? 'display:block' : 'display:none'
|
||||
'style' => $children === 0 ? 'display:none' : null
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue