Skip to content

Commit 92201ec

Browse files
committed
Merge pull request #40 from fefrei/patch-1
subheaderClass is the new "sub-header", not itemClass. Fixes issue #39.
2 parents ea03be8 + 09bd200 commit 92201ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/javascripts/jquery.tocify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466
if(currentTagName < previousTagName) {
467467

468468
// Selects the last unordered list HTML found within the HTML element calling the plugin
469-
self.element.find(itemClass + "[data-tag=" + currentTagName + "]").last().append(self._nestElements($(this), index));
469+
self.element.find(subheaderClass + "[data-tag=" + currentTagName + "]").last().append(self._nestElements($(this), index));
470470

471471
}
472472

@@ -969,4 +969,4 @@
969969

970970
});
971971

972-
})); //end of plugin
972+
})); //end of plugin

0 commit comments

Comments
 (0)