notebook, note同步

note待同步内容, 图片
This commit is contained in:
life
2015-01-22 00:41:49 +08:00
parent 1674b9f91d
commit 1d015642a6
8 changed files with 339 additions and 73 deletions

View File

@@ -1295,8 +1295,13 @@ LeaAce = {
};
// 全量同步
function fullSync() {
function fullSync(callback) {
log('full sync');
SyncService.fullSync(function(ret) {
log('after....')
log(ret);
callback && callback();
});
}
// note.html调用
@@ -1340,7 +1345,9 @@ function initPage() {
UserService.init(function(userInfo) {
if(userInfo) {
UserInfo = userInfo;
_init();
fullSync(function() {
_init();
});
} else {
location.href = 'login.html';
}