change confusing quit and restart items in cloud9 menu

pull/282/head
nightwing 2016-03-30 10:33:06 +00:00
rodzic f70091690c
commit 5d4dee25ac
3 zmienionych plików z 10 dodań i 10 usunięć

Wyświetl plik

@ -83,7 +83,7 @@
"c9.ide.ace.stripws": "#8885016b9e",
"c9.ide.behaviors": "#db32109ebc",
"c9.ide.closeconfirmation": "#cee4674141",
"c9.ide.configuration": "#528234d97d",
"c9.ide.configuration": "#a936df26bb",
"c9.ide.dialog.wizard": "#7667ec79a8",
"c9.ide.fontawesome": "#781602c5d8",
"c9.ide.format": "#5ec97fb083",

Wyświetl plik

@ -333,15 +333,6 @@ define(function(require, exports, module) {
amlNode.$ext.className += " c9btn";
menus.addItemByPath("File/~", new apf.divider(), 1000000, plugin);
if (!c9.local) {
menus.addItemByPath("Cloud9/~", new apf.divider(), 2000000, plugin);
menus.addItemByPath("Cloud9/Quit Cloud9", new apf.item({
onclick: function(){
location.href = "http://c9.io";
}
}), 2000100, plugin);
}
menus.addItemByPath("View/~", new apf.divider(), 9999, plugin);

Wyświetl plik

@ -40,6 +40,15 @@ define(function(require, exports, module) {
});
auth.on("relogin", onReLogin);
if (!c9.local) {
menus.addItemByPath("Cloud9/~", new apf.divider(), 2000000, plugin);
menus.addItemByPath("Cloud9/Quit Cloud9", new apf.item({
onclick: function(){
signout();
}
}), 2000100, plugin);
}
}
/***** Methods *****/