Stupid me, the condition needs to work on the count of the children, of course.

This commit is contained in:
Thomas Keller 2011-03-03 23:41:56 +01:00
parent 29d966cdb3
commit 177cf836b4

View File

@ -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();
});