summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-04-08 12:17:10 +0200
committerjmoenig <jens@moenig.org>2013-04-08 12:17:10 +0200
commitd022d718fbed7d1ed9547f9b3da7f96ef90d6a15 (patch)
treeceb71714fb5d20106b45db746761998138fc297d /gui.js
parenta4037b57c1483c613c8322ec15b8c3406e3698c1 (diff)
downloadsnap-byow-d022d718fbed7d1ed9547f9b3da7f96ef90d6a15.tar.gz
snap-byow-d022d718fbed7d1ed9547f9b3da7f96ef90d6a15.zip
Sharing / Unsharing projects finalization
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js19
1 files changed, 16 insertions, 3 deletions
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()
);