新笔记&&IsTrash不同步, enter搜索

This commit is contained in:
life
2015-03-19 20:05:58 +08:00
parent ebcab93fd7
commit 394d39d6f9
3 changed files with 14 additions and 7 deletions

2
node_modules/sync.js generated vendored
View File

@@ -741,7 +741,7 @@ var Sync = {
// 调api, 所有执行后再callback();
// 一个一个同步执行, 因为要有
async.eachSeries(notes, function(note, cb) {
if(note.LocalIsNew) {
if(note.LocalIsNew && !note.IsTrash) { // 是新的, 且不是trash
// 添加, newNote的返回不会很多值(server端)
Api.addNote(note, function(newNote) {
if(!Common.isOk(newNote)) {