From 968637ba8915f8c4cf8ef55f07d475ec454579eb Mon Sep 17 00:00:00 2001 From: life Date: Thu, 19 Feb 2015 20:19:51 +0800 Subject: [PATCH] ok --- node_modules/notebook.js | 6 +++--- node_modules/sync.js | 5 +++-- note.html | 3 +-- public/js/app/page.js | 15 +++++++++------ 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/node_modules/notebook.js b/node_modules/notebook.js index aa6afd8f..c192afa1 100644 --- a/node_modules/notebook.js +++ b/node_modules/notebook.js @@ -297,9 +297,9 @@ var Notebook = { notebook.LocalIsNew = false; notebook.LocalIsDelete = false; - delete note['NumberNotes']; - delete note['UpdatedTime']; - delete note['CreatedTime']; + delete notebook['NumberNotes']; + delete notebook['UpdatedTime']; + delete notebook['CreatedTime']; var serverNotebookId = notebook.NotebookId; me.getNotebookIdByServerNotebookId(notebook.ParentNotebookId, function(parentNotebookId) { diff --git a/node_modules/sync.js b/node_modules/sync.js index b54d9f48..5371bdfa 100644 --- a/node_modules/sync.js +++ b/node_modules/sync.js @@ -457,7 +457,7 @@ var Sync = { // 同步笔记本 me.syncNotebook(-1, function(ok) { if(ok) { - log('------------------') + console.log('------------------') // 同步笔记 me.syncNote(-1, function(ok) { if(ok) { @@ -467,6 +467,7 @@ var Sync = { me.updateLastSyncState(function() { // send changes me.sendChanges(); + callback && callback(me._syncInfo); }); }); } else { @@ -474,7 +475,7 @@ var Sync = { } }); } else { - log('no-------') + console.log('no-------') callback && callback(me._syncInfo); } }); diff --git a/note.html b/note.html index 95015696..5b8d0c2e 100755 --- a/note.html +++ b/note.html @@ -201,8 +201,7 @@ function log(o) {