From cb41576e5ac53707bac1c16c46b851a269a41a6b Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 10 Apr 2013 08:33:50 +0200 Subject: [PATCH] Load shared projects from different formats cloud data and plain project format --- gui.js | 9 ++++++--- history.txt | 5 +++++ morphic.js | 2 +- objects.js | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gui.js b/gui.js index 3686c3b7..a387a6c8 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('