修复代码折叠bug
This commit is contained in:
1 parent
9774eeac12
commit
06a5f3da4d
2 files changed
+13
-9
No files matched your search
@@ -94,21 +94,25 @@ document.addEventListener("pjax:success", function () {
|
||||
});
|
||||
|
||||
// pjax加载完成
|
||||
// 代码折叠初始化 — 独立监听器,确保不被其他初始化错误影响
|
||||
document.addEventListener("pjax:complete", function () {
|
||||
setTimeout(function() {
|
||||
if (typeof window.initCodeFold === 'function') window.initCodeFold();
|
||||
}, 200);
|
||||
});
|
||||
|
||||
document.addEventListener("pjax:complete", function () {
|
||||
// pjax完成动画
|
||||
if (typeof NProgress !== 'undefined') {
|
||||
NProgress.done();
|
||||
}
|
||||
|
||||
|
||||
// 重载一些js样式调整
|
||||
pjax_reload();
|
||||
|
||||
|
||||
// 初始化代码复制
|
||||
if (typeof initCodeCopy === 'function') initCodeCopy();
|
||||
|
||||
// 初始化代码折叠
|
||||
if (typeof initCodeFold === 'function') initCodeFold();
|
||||
|
||||
|
||||
// 初始化段落评论
|
||||
if (typeof window.initParagraphComments === 'function') {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user