From cb41576e5ac53707bac1c16c46b851a269a41a6b Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 10 Apr 2013 08:33:50 +0200 Subject: Load shared projects from different formats cloud data and plain project format --- gui.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 3686c3b..a387a6c 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-April-09'; +modules.gui = '2013-April-10'; // Declarations @@ -253,7 +253,6 @@ IDE_Morph.prototype.openIn = function (world) { this.shield.color = this.color; this.shield.setExtent(this.parent.extent()); this.parent.add(this.shield); - myself.showMessage('Fetching project\nfrom the cloud...'); SnapCloud.getPublicProject( location.hash.substr(9), @@ -264,7 +263,11 @@ IDE_Morph.prototype.openIn = function (world) { msg = myself.showMessage('Opening project...'); }, function () { - myself.rawOpenCloudDataString(projectData); + if (projectData.indexOf('