diff options
| author | jmoenig <jens@moenig.org> | 2013-04-08 12:17:10 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-04-08 12:17:10 +0200 |
| commit | d022d718fbed7d1ed9547f9b3da7f96ef90d6a15 (patch) | |
| tree | ceb71714fb5d20106b45db746761998138fc297d /gui.js | |
| parent | a4037b57c1483c613c8322ec15b8c3406e3698c1 (diff) | |
| download | snap-d022d718fbed7d1ed9547f9b3da7f96ef90d6a15.tar.gz snap-d022d718fbed7d1ed9547f9b3da7f96ef90d6a15.zip | |
Sharing / Unsharing projects finalization
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-April-04'; +modules.gui = '2013-April-08'; // Declarations @@ -246,11 +246,24 @@ IDE_Morph.prototype.openIn = function (world) { this.toggleAppMode(true); this.runScripts(); } else if (location.hash.substr(0, 9) === '#present:') { + myself.showMessage('Fetching project\nfrom the cloud...'); SnapCloud.getPublicProject( location.hash.substr(9), function (projectData) { - myself.rawOpenProjectString(projectData); - myself.toggleAppMode(true); + var msg; + myself.nextSteps([ + function () { + msg = myself.showMessage('Opening project...'); + }, + function () { + myself.rawOpenCloudDataString(projectData); + }, + function () { + msg.destroy(); + myself.toggleAppMode(true); + myself.runScripts(); + } + ]); }, this.cloudError() ); |
