自动保存优化, 时间缩短成10s

https://github.com/leanote/leanote/issues/243
This commit is contained in:
lealife
2015-10-30 14:02:28 +08:00
parent 1242834b7f
commit 6eea03f81e
5 changed files with 179 additions and 167 deletions

@ -558,7 +558,7 @@ function initEditor() {
// 刷新时保存 参考autosave插件
window.onbeforeunload = function(e) {
Note.curChangedSaveIt();
Note.curChangedSaveIt(true);
}
// 全局快捷键