summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/js/common.js b/js/common.js
index 210a1c6cc..17d1fe444 100755
--- a/js/common.js
+++ b/js/common.js
@@ -266,15 +266,18 @@ function fatalError(code, msg, ext_info) {
msg = ERRORS[code];
}
- let content = "<div><b>Error code:</b> " + code + "</div>" +
- "<p>" + msg + "</p>";
+ let content = `<div><b>Error code:</b> ${code} </div>
+ <p>${msg}</p>`;
if (ext_info) {
- content = content + "<div><b>Additional information:</b></div>" +
- "<textarea style='width: 100%' readonly=\"1\">" +
- ext_info + "</textarea>";
+ content = content + `<div><b>Additional information:</b></div>
+ <textarea style='width: 100%' readonly="1">${ext_info}</textarea>`;
}
+ content += `<div style='text-align : center'>
+ <button dojoType="dijit.form.Button" onclick="window.location.reload()">
+ ${__('Try again')}</button></div>`;
+
const dialog = new dijit.Dialog({
title: "Fatal error",
style: "width: 600px",