Skip to content

Commit

Permalink
Simplify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 17, 2025
1 parent efa3fd3 commit 206fba6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,16 @@
'<ul class="messagelist">' +
' <li class="error">' +
' {msg} ' +
' <a href="#reload" class="cms-tree-reload"> ' +
reload +
' </a>' +
' </li>' +
'</ul>';
const error = window.top.CMS?.config?.lang?.error || 'Error';
const error = window.top.CMS?.config?.lang?.error || '';
let msg = tpl.replace('{msg}', '<strong>' + error + '</strong> ' + message);

if (messages.length) {
messages.replaceWith(msg);
} else {
breadcrumb.after(msg);
}
$("a.cms-tree-reload").click(function (e) {
e.preventDefault();
_reloadHelper();
});
}

function close_menu() {
Expand Down

0 comments on commit 206fba6

Please sign in to comment.