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

feature.better-home
Thomas Keller 2011-03-03 23:41:56 +01:00
parent 29d966cdb3
commit 177cf836b4
1 changed files with 1 additions and 1 deletions

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