kopia lustrzana https://github.com/c9/core
options.cancel is used for something else
rodzic
7f0f4387c9
commit
2b4dad9b31
|
@ -30,8 +30,8 @@ define(function(require, module, exports) {
|
|||
plugin.heading = options.isHTML ? header : util.escapeXml(header);
|
||||
plugin.body = options.isHTML ? msg : util.escapeXml(msg).replace(/\n/g, "<br>");
|
||||
|
||||
plugin.getElement("ok").setCaption(options.yes || options.ok || "OK");
|
||||
plugin.getElement("cancel").setCaption(options.no || options.cancel || "Cancel");
|
||||
plugin.getElement("ok").setCaption(options.yes || "OK");
|
||||
plugin.getElement("cancel").setCaption(options.no || "Cancel");
|
||||
|
||||
plugin.update([
|
||||
{ id: "ok", onclick: function(){ plugin.hide(); onconfirm(); } },
|
||||
|
|
|
@ -40,8 +40,8 @@ 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 || options.ok || "Yes");
|
||||
plugin.getElement("no").setCaption(options.no || options.cancel || "No");
|
||||
plugin.getElement("yes").setCaption(options.yes || "Yes");
|
||||
plugin.getElement("no").setCaption(options.no || "No");
|
||||
plugin.getElement("yestoall").setCaption(options.yestoall || "Yes to All");
|
||||
plugin.getElement("notoall").setCaption(options.notoall || "No to All");
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue