kopia lustrzana https://github.com/c9/core
Improve question UX
rodzic
2f14110097
commit
bad3c4ad1f
|
@ -105,7 +105,7 @@
|
|||
"c9.ide.recentfiles": "#7c099abf40",
|
||||
"c9.ide.remote": "#301d2ab519",
|
||||
"c9.ide.processlist": "#2b12cd1bdd",
|
||||
"c9.ide.run": "#1a5a660c44",
|
||||
"c9.ide.run": "#386c0fb90a",
|
||||
"c9.ide.run.build": "#0598fff697",
|
||||
"c9.ide.run.debug.xdebug": "#9956689819",
|
||||
"c9.ide.save": "#2de9fd7c2d",
|
||||
|
|
|
@ -40,6 +40,9 @@ define(function(require, module, exports) {
|
|||
plugin.heading = options && options.isHTML ? header : util.escapeXml(header);
|
||||
plugin.body = options && options.isHTML ? msg : util.escapeXml(msg).replace(/\n/g, "<br>");
|
||||
|
||||
plugin.getElement("yes").setCaption(options.yes || "Yes");
|
||||
plugin.getElement("no").setCaption(options.no || "No");
|
||||
|
||||
plugin.allowClose = cancel;
|
||||
|
||||
var gotYesNo = false;
|
||||
|
|
|
@ -68,7 +68,8 @@ define(function(require, exports, module) {
|
|||
+ "Cloud9 will return to it's original configuration",
|
||||
function(){
|
||||
settings.reset();
|
||||
}, function(){});
|
||||
}, function(){},
|
||||
{ yes: "Reset settings", no: "Abort" });
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1002,7 +1002,7 @@ define(function(require, exports, module) {
|
|||
if (question.dontAsk)
|
||||
settings.set("user/terminal/noclosequestion", "true");
|
||||
},
|
||||
{ showDontAsk: true });
|
||||
{ showDontAsk: true, yes: "Close", no: "Abort" });
|
||||
return false;
|
||||
}
|
||||
}, session);
|
||||
|
|
Ładowanie…
Reference in New Issue