add to history after sync content

This commit is contained in:
life
2015-12-01 21:31:37 +08:00
parent 40abd91050
commit 125197addf

7
node_modules/note.js generated vendored
View File

@@ -606,6 +606,9 @@ var Note = {
callback && callback(content);
}
});
// 添加到历史中
me.addNoteHistory(noteId, content);
},
// sync调用, 用于判断是否真的有冲突
@@ -828,6 +831,10 @@ var Note = {
// console.log(note.CreatedTime);
callback && callback(newDoc);
// 添加到历史中
// 因为没有内容, 所以不用添加
// me.addNoteHistory(note.NoteId, note.Content);
// 重新统计
Notebook.reCountNotebookNumberNotes(note.NotebookId);