summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-02 10:27:11 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-02 10:27:11 +0200
commit6c49b91f05262e4ce4ce992e0ab8d5275c0ef0bd (patch)
tree09e27ae91506ad195c2c86dddd44b1c5b5a6f848 /gui.js
parenta3d195b69ecc1b2a35699606eed0ed42b0c8a729 (diff)
downloadsnap-6c49b91f05262e4ce4ce992e0ab8d5275c0ef0bd.tar.gz
snap-6c49b91f05262e4ce4ce992e0ab8d5275c0ef0bd.zip
prettify error message when not logged in
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index cbc3353..843f1ef 100644
--- a/gui.js
+++ b/gui.js
@@ -268,6 +268,16 @@ IDE_Morph.prototype.openIn = function (world) {
}, 2000);
};
+ GitHub.message = function (string) {
+ var m = new MenuMorph(null, string),
+ intervalHandle;
+ m.popUpCenteredInWorld(world);
+ intervalHandle = setInterval(function () {
+ m.destroy();
+ clearInterval(intervalHandle);
+ }, 2000);
+ };
+
// prevent non-DialogBoxMorphs from being dropped
// onto the World in user-mode
world.reactToDropOf = function (morph) {