Commit ce202ecf authored by techird's avatar techird

merge from dev

parents d73b1713 8057635b
......@@ -275,7 +275,6 @@ $( function () {
url: url,
dataType: 'text',
success: function ( result ) {
watchingChanges = false;
minder.importData( result, 'json' );
......@@ -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;
}
} );
},
......@@ -327,7 +326,7 @@ $( function () {
}
} else {
draft = draftManager.openByPath( path );
setRemotePath( path, !draft );
setRemotePath( path, !draft || draft.sync );
if ( draft ) {
draftManager.load();
} else {
......
......@@ -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 );
}
} );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment