summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-08-02 10:54:20 +0800
committerWu Cheng-Han2016-08-02 10:54:20 +0800
commit4de73477b48c08444f0ba83d48d3c84fda2d3dbc (patch)
tree919108d0bde018d09a01a7eaa738f09644563db1
parentb6aa0459976165d4388095432c0f356e5f053513 (diff)
Fix TOC might not update after changeMode
Diffstat (limited to '')
-rw-r--r--public/js/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index a42f04f5..ca4f0958 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");