diff --git a/boot/boot.js b/boot/boot.js index 0bf28bef0..67867b9b6 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -136,7 +136,7 @@ $tw.utils.error = function(err) { heading = dm("h1",{text: errHeading}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), 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"}); document.body.insertBefore(form,document.body.firstChild); form.addEventListener("submit",function(event) { diff --git a/core/modules/utils/dom/modal.js b/core/modules/utils/dom/modal.js index 385f7fac2..643de50d9 100644 --- a/core/modules/utils/dom/modal.js +++ b/core/modules/utils/dom/modal.js @@ -122,7 +122,7 @@ Modal.prototype.display = function(title,options) { attributes: { text: { type: "string", - value: ( $tw.language == undefined ? "Close" : $tw.language.getString("Buttons/Close/Caption") ) + value: $tw.language.getString("Buttons/Close/Caption") }}} ]}], parentWidget: $tw.rootWidget,