导入导出优化

This commit is contained in:
life
2015-11-01 15:41:35 +08:00
parent 8198d4495d
commit 07ef7c0136
12 changed files with 46 additions and 17 deletions

13
node_modules/sync.js generated vendored
View File

@@ -523,7 +523,7 @@ var Sync = {
me.syncNotebook(-1, function(ok) {
if(ok) {
// Web.syncNoteFinish();
console.log('------------------')
// console.log('------------------')
// 同步笔记
me.syncNote(-1, function(ok) {
if(ok) {
@@ -533,17 +533,18 @@ var Sync = {
// 更新上次同步时间
me.updateLastSyncState(function() {
// send changes
me.sendChanges();
callback && callback(me._syncInfo);
// me.sendChanges();
callback && callback(me._syncInfo, true);
});
});
} else {
callback && callback(me._syncInfo);
console.error('syncNote error.... 跳过tag');
callback && callback(me._syncInfo, false);
}
});
} else {
console.log('no-------')
callback && callback(me._syncInfo);
console.error('syncNotebook error.... 跳过note,tag');
callback && callback(me._syncInfo, false);
}
});
},