Fix TOC might not update after changeMode

This commit is contained in:
Wu Cheng-Han 2016-08-02 10:54:20 +08:00
parent b6aa045997
commit 4de73477b4

View file

@ -1173,6 +1173,9 @@ function changeMode(type) {
editor.refresh(); editor.refresh();
} }
$(document.body).scrollspy('refresh');
ui.area.view.scrollspy('refresh');
ui.toolbar.both.removeClass("active"); ui.toolbar.both.removeClass("active");
ui.toolbar.edit.removeClass("active"); ui.toolbar.edit.removeClass("active");
ui.toolbar.view.removeClass("active"); ui.toolbar.view.removeClass("active");