1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

change string 'Close' to lowercase for dialog (#2366)

This commit is contained in:
Myeongjin 2016-04-15 07:03:14 +09:00 committed by Jeremy Ruston
parent bea6d741e3
commit e6e346ea29
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ $tw.utils.error = function(err) {
heading = dm("h1",{text: errHeading}), heading = dm("h1",{text: errHeading}),
prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}),
message = dm("div",{text: err}), message = dm("div",{text: err}),
button = dm("button",{text: ( $tw.language == undefined ? "Close" : $tw.language.getString("Buttons/Close/Caption") )}), button = dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )}),
form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"}); form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"});
document.body.insertBefore(form,document.body.firstChild); document.body.insertBefore(form,document.body.firstChild);
form.addEventListener("submit",function(event) { form.addEventListener("submit",function(event) {

View File

@ -122,7 +122,7 @@ Modal.prototype.display = function(title,options) {
attributes: { attributes: {
text: { text: {
type: "string", type: "string",
value: ( $tw.language == undefined ? "Close" : $tw.language.getString("Buttons/Close/Caption") ) value: $tw.language.getString("Buttons/Close/Caption")
}}} }}}
]}], ]}],
parentWidget: $tw.rootWidget, parentWidget: $tw.rootWidget,