kopia lustrzana https://github.com/c9/core
Merge pull request +13120 from c9/ide-quit
change confusing quit and restart items in cloud9 menupull/282/head
commit
f666988c5a
|
@ -83,7 +83,7 @@
|
|||
"c9.ide.ace.stripws": "#042a9936e3",
|
||||
"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",
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 *****/
|
||||
|
|
Ładowanie…
Reference in New Issue