This commit is contained in:
2026-02-12 09:55:27 +01:00
parent 88c8a3fd58
commit 985fc05aa1
3 changed files with 133 additions and 1 deletions

View File

@@ -92,7 +92,17 @@ function initEventHandlers() {
});
}
// TODO: Weitere Event-Handler (Löschen, Import, Export, Filter)
// TODO: Weitere Event-Handler (Import, Export, Filter)
document.querySelectorAll('[data-confirm-delete]').forEach((btn) => {
btn.addEventListener('click', (event) => {
event.preventDefault();
const message = btn.getAttribute('data-confirm-message') || 'Aktion ausführen?';
if (confirm(message)) {
alert(btn.getAttribute('data-confirm-feedback') || 'Diese Funktion ist noch nicht verfügbar.');
}
});
});
}
// =========================