Skip to content

Commit

Permalink
同步逻辑修正
Browse files Browse the repository at this point in the history
  • Loading branch information
techird committed Mar 25, 2014
1 parent edf5ede commit 8057635
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions social/social.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ $( function () {
url: url,
dataType: 'text',
success: function ( result ) {

watchingChanges = false;

minder.importData( result, 'json' );
Expand All @@ -284,11 +283,11 @@ $( function () {
draftManager.create();
}
draftManager.save( remotePath );

watchingChanges = true;

draftManager.sync();
minder.execCommand( 'camera', minder.getRoot() );
$user_btn.loading( false ).text( getFileName( remotePath ) );

watchingChanges = true;
}
} );
},
Expand Down Expand Up @@ -327,7 +326,7 @@ $( function () {
}
} else {
draft = draftManager.openByPath( path );
setRemotePath( path, !draft );
setRemotePath( path, !draft || draft.sync );
if ( draft ) {
draftManager.load();
} else {
Expand Down
1 change: 1 addition & 0 deletions src/module/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ KityMinder.registerModule( 'View', function () {
var dx = viewport.center.x - offset.x - offset.width / 2,
dy = viewport.center.y - offset.y;
km.getRenderContainer().fxTranslate( dx, dy, 1000, "easeOutQuint" );
this.setContentChanged( false );
}
} );

Expand Down

0 comments on commit 8057635

Please sign in to comment.