Fix smart toc not displaying bug
This commit is contained in:
@@ -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 = '';
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user