summaryrefslogtreecommitdiff
path: root/js/AppBase.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-11 12:45:05 +0300
committerAndrew Dolgov <[email protected]>2018-12-11 12:45:05 +0300
commit071ca5aa9632c519f8eade427a7eb8241a7182ae (patch)
treed0f8177460ab5a0ef825cdeb7c6db744a7544586 /js/AppBase.js
parent2cbc2f5261b521d8c62c1bd999647aac4f52c080 (diff)
Error.report: use JS template strings
Diffstat (limited to 'js/AppBase.js')
-rw-r--r--js/AppBase.js21
1 files changed, 9 insertions, 12 deletions
diff --git a/js/AppBase.js b/js/AppBase.js
index 398acc31d..4e0bdc765 100644
--- a/js/AppBase.js
+++ b/js/AppBase.js
@@ -414,18 +414,15 @@ define(["dojo/_base/declare"], function (declare) {
if (dijit.byId("exceptionDlg"))
dijit.byId("exceptionDlg").destroyRecursive();
- let content = "<div class='fatalError'><p>" + message + "</p>";
-
- if (error.stack)
- content += "<div><b>Stack trace:</b></div>" +
- "<textarea name=\"stack\" readonly=\"1\">" + error.stack + "</textarea>";
-
- content += "<div style='text-align : center'>";
-
- content += "<button dojoType=\"dijit.form.Button\" " +
- "onclick=\"dijit.byId('exceptionDlg').hide()\">" +
- __('Close this window') + "</button>";
- content += "</div>";
+ let content = `<div class="error-contents">
+ <p class="message">${message}</p>
+ <div><b>Stack trace:</b></div>
+ <textarea name="stack" readonly="1">${error.stack}</textarea>
+ <div class="dlgButtons">
+ <button dojoType="dijit.form.Button"
+ onclick=\"dijit.byId('exceptionDlg').hide()">${__('Close this window')}</button>
+ </div>
+ </div>`;
const dialog = new dijit.Dialog({
id: "exceptionDlg",