From feb9a2d0fe9e2a744059e8054c229c537a4fa910 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Fri, 12 Sep 2014 15:33:13 +0200 Subject: prepare for team support --- gui.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gui.js b/gui.js index 21ea4d9..6ae7222 100644 --- a/gui.js +++ b/gui.js @@ -3936,7 +3936,17 @@ IDE_Morph.prototype.saveProjectToGitHub = function (name, commitMessage) { GitHub.saveProject( commitMessage, this, - function () {myself.showMessage('saved.', 2); }, + function () { + GitHub.getProject( + GitHub.username, + name, + function (code) { + myself.source = 'github'; + myself.droppedText(code); + }, + myself.githubError() + ); + }, this.githubError() ); } @@ -5017,7 +5027,7 @@ ProjectDialogMorph.prototype.openCloudProject = function (project) { ProjectDialogMorph.prototype.openGitHubProject = function (project, user) { var myself = this; - if (user == null) { + if (user == null) { // jshint ignore:line user = GitHub.username; } -- cgit v1.3.1