Fixed deleting tickets

Link was not updated
This commit is contained in:
sraffauf
2026-01-22 21:17:57 +01:00
parent 06047524ca
commit bb8c35b6d1

View File

@@ -108,7 +108,7 @@ function showTicketDetails(index) {
document.getElementById('delete-ticket').addEventListener('click', async () => {
if(!confirm("Ticket wirklich löschen?")) return;
const res = await fetch('./backend/delete_ticket.php', {
const res = await fetch('./delete_ticket.php', {
method:'POST',
headers:{'Content-Type':'application/json'},
body:JSON.stringify({index})