Commit ce202ecf authored by techird's avatar techird

merge from dev

parents d73b1713 8057635b
...@@ -275,7 +275,6 @@ $( function () { ...@@ -275,7 +275,6 @@ $( function () {
url: url, url: url,
dataType: 'text', dataType: 'text',
success: function ( result ) { success: function ( result ) {
watchingChanges = false; watchingChanges = false;
minder.importData( result, 'json' ); minder.importData( result, 'json' );
...@@ -284,11 +283,11 @@ $( function () { ...@@ -284,11 +283,11 @@ $( function () {
draftManager.create(); draftManager.create();
} }
draftManager.save( remotePath ); draftManager.save( remotePath );
draftManager.sync();
watchingChanges = true;
minder.execCommand( 'camera', minder.getRoot() ); minder.execCommand( 'camera', minder.getRoot() );
$user_btn.loading( false ).text( getFileName( remotePath ) ); $user_btn.loading( false ).text( getFileName( remotePath ) );
watchingChanges = true;
} }
} ); } );
}, },
...@@ -327,7 +326,7 @@ $( function () { ...@@ -327,7 +326,7 @@ $( function () {
} }
} else { } else {
draft = draftManager.openByPath( path ); draft = draftManager.openByPath( path );
setRemotePath( path, !draft ); setRemotePath( path, !draft || draft.sync );
if ( draft ) { if ( draft ) {
draftManager.load(); draftManager.load();
} else { } else {
......
...@@ -104,6 +104,7 @@ KityMinder.registerModule( 'View', function () { ...@@ -104,6 +104,7 @@ KityMinder.registerModule( 'View', function () {
var dx = viewport.center.x - offset.x - offset.width / 2, var dx = viewport.center.x - offset.x - offset.width / 2,
dy = viewport.center.y - offset.y; dy = viewport.center.y - offset.y;
km.getRenderContainer().fxTranslate( dx, dy, 1000, "easeOutQuint" ); 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