mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 01:16:56 +00:00
send changes note.update [ok]
This commit is contained in:
4
node_modules/notebook.js
generated
vendored
4
node_modules/notebook.js
generated
vendored
@@ -280,13 +280,13 @@ var Notebook = {
|
||||
|
||||
//
|
||||
|
||||
// 更新笔记本, NoteId可能也要更改
|
||||
// 更新笔记本, NotebookId可能也要更改
|
||||
// notebook是服务器传过来的
|
||||
updateNotebookForceForSendChange: function(notebookId, notebook, callback) {
|
||||
var me = this;
|
||||
notebook.IsDirty = false;
|
||||
notebook.LocalIsNew = false;
|
||||
notebook.ServerNotebookId = notebook.NotebookId;
|
||||
notebook.ServerNotebookId = notebook.NotebookId; // ? 怎么可能要改呢? 因为这可能是添加后的笔记本
|
||||
me.getNotebookIdByServerNotebookId(notebook.ParentNotebookId, function(parentNotebookId) {
|
||||
notebook.ParentNotebookId = parentNotebookId;
|
||||
NB.update({NotebookId: notebookId}, {$set: notebook}, {}, function (err, n) {
|
||||
|
Reference in New Issue
Block a user