Stupid me, the condition needs to work on the count of the children, of course.
This commit is contained in:
parent
29d966cdb3
commit
177cf836b4
@ -5,7 +5,7 @@ $(document).ready(function() {
|
||||
.addClass("wiki-" + this.tagName.toLowerCase())
|
||||
.appendTo('#wiki-toc-content');
|
||||
});
|
||||
if ($('#wiki-toc-content').size() < 2)
|
||||
if ($('#wiki-toc-content *').size() < 2)
|
||||
$('#wiki-toc').hide();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user