Fix smart toc not displaying bug

This commit is contained in:
Carson Ip
2017-02-26 10:21:14 +01:00
parent d16ebcaa02
commit cbe7676c74

View File

@@ -51,7 +51,7 @@
$window.on('scroll', onScroll); $window.on('scroll', onScroll);
$(document).ready(function() { $(document).ready(function() {
$toc.find('li').find('ul').hide(); $toc.find('a').parent('li').siblings('ul').hide();
onScroll(); onScroll();
document.getElementsByClassName('article-toc')[0].style.display = ''; document.getElementsByClassName('article-toc')[0].style.display = '';
}); });