Improve question UX

pull/248/head
Lennart Kats 2016-02-05 13:45:31 +00:00
rodzic 2f14110097
commit bad3c4ad1f
4 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

@ -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;

Wyświetl plik

@ -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" });
}
}
},

Wyświetl plik

@ -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);