JS fix [thanks Nulled]

This commit is contained in:
Mark Pilgrim
2009-12-08 20:33:45 -08:00
parent bbad0e12d1
commit 48c49cb8eb
+1
View File
@@ -98,6 +98,7 @@ function hideTOC() {
function showTOC() {
var toc = '';
var old_level = 1;
var level;
$('h2,h3').each(function(i, h) {
level = parseInt(h.tagName.substring(1), 10);
if (level < old_level) {