From 4de73477b48c08444f0ba83d48d3c84fda2d3dbc Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 2 Aug 2016 10:54:20 +0800 Subject: [PATCH] Fix TOC might not update after changeMode --- public/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index a42f04f..ca4f095 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1173,6 +1173,9 @@ function changeMode(type) { editor.refresh(); } + $(document.body).scrollspy('refresh'); + ui.area.view.scrollspy('refresh'); + ui.toolbar.both.removeClass("active"); ui.toolbar.edit.removeClass("active"); ui.toolbar.view.removeClass("active");