replaced sweet alert inline styles with CSS classes

This commit is contained in:
2026-06-16 15:43:48 +02:00
parent 336e7cf3a6
commit c1dd6cc009
3 changed files with 28 additions and 15 deletions

View File

@@ -406,7 +406,7 @@ function deleteContribution(contributionId) {
showCancelButton: true,
confirmButtonText: 'Beitrag löschen',
cancelButtonText: 'Abbrechen',
confirmButtonColor: '#c62828'
customClass: { confirmButton: 'swal-btn-danger' },
}).then(function (result) {
if (!result.isConfirmed) return;
@@ -500,7 +500,7 @@ function deleteModComment(commentId) {
showCancelButton: true,
confirmButtonText: 'Löschen',
cancelButtonText: 'Abbrechen',
confirmButtonColor: '#c62828'
customClass: { confirmButton: 'swal-btn-danger' },
}).then(function (result) {
if (!result.isConfirmed) return;
@@ -637,7 +637,7 @@ function deleteNews(newsId) {
showCancelButton: true,
confirmButtonText: 'Löschen',
cancelButtonText: 'Abbrechen',
confirmButtonColor: '#c62828'
customClass: { confirmButton: 'swal-btn-danger' },
}).then(function (result) {
if (!result.isConfirmed) return;