diff --git a/src/static/js/pad_impexp.js b/src/static/js/pad_impexp.js index e05b97a54..ea93de7c9 100644 --- a/src/static/js/pad_impexp.js +++ b/src/static/js/pad_impexp.js @@ -84,9 +84,12 @@ const padimpexp = (() => { const msg = html10n.get(`pad.impexp.${known.indexOf(status) !== -1 ? status : 'copypaste'}`); const showError = (fade) => { - $('#importmessagefail').html( - `${html10n.get('pad.impexp.importfailed')}: ` + - `${msg}`)[(fade ? 'fadeIn' : 'show')](); + const popup = $('#importmessagefail').empty() + .append($('') + .css('color', 'red') + .text(`${html10n.get('pad.impexp.importfailed')}: `)) + .append(document.createTextNode(msg)); + popup[(fade ? 'fadeIn' : 'show')](); }; if ($('#importexport .importmessage').is(':visible')) {