summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-12 15:33:13 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-12 15:33:13 +0200
commitfeb9a2d0fe9e2a744059e8054c229c537a4fa910 (patch)
tree1de04b0e1788ad036b6aba04cfc6e297f4fdc74a
parentb0276ea5bb8feb2c8d095574b9ed29bb6bbefe5c (diff)
downloadsnap-feb9a2d0fe9e2a744059e8054c229c537a4fa910.tar.gz
snap-feb9a2d0fe9e2a744059e8054c229c537a4fa910.zip
prepare for team support
-rw-r--r--gui.js14
1 files 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;
}