From d022d718fbed7d1ed9547f9b3da7f96ef90d6a15 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 8 Apr 2013 12:17:10 +0200 Subject: Sharing / Unsharing projects finalization --- gui.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 6e18060..b886f96 100644 --- a/gui.js +++ b/gui.js @@ -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() ); -- cgit v1.3.1