Fix: admin warning messages

This commit is contained in:
hyzen
2026-06-14 15:49:41 +05:30
parent ff0601a4f9
commit c3410c742b
2 changed files with 7 additions and 7 deletions

View File

@@ -78,10 +78,10 @@
'" data-action="block_user">Block</button>';
var deleteBtn =
'<button class="admin-btn admin-btn--delete" data-id="' +
u.id +
'" data-username="' +
escHtml(u.username) +
'" data-action="delete_user">Delete Records</button>';
u.id +
'" data-username="' +
escHtml(u.username) +
'" data-action="delete_user">Delete Records</button>';
return (
'<tr id="user-row-' +
@@ -127,14 +127,14 @@
if (action === 'delete_user') {
if (
!confirm(
'Permanently delete user "' + uname + '"? This cannot be undone.'
'Permanently delete user ' + uname + '? This cannot be undone.'
)
)
return;
} else if (action === 'block_user') {
if (
!confirm(
"This will permanently delete the user's email history and cannot be undone"
"This will permanently delete the user's email history and cannot be undone."
)
)
return;