Fixed deleting tickets
Link was not updated
This commit is contained in:
@@ -108,7 +108,7 @@ function showTicketDetails(index) {
|
|||||||
document.getElementById('delete-ticket').addEventListener('click', async () => {
|
document.getElementById('delete-ticket').addEventListener('click', async () => {
|
||||||
if(!confirm("Ticket wirklich löschen?")) return;
|
if(!confirm("Ticket wirklich löschen?")) return;
|
||||||
|
|
||||||
const res = await fetch('./backend/delete_ticket.php', {
|
const res = await fetch('./delete_ticket.php', {
|
||||||
method:'POST',
|
method:'POST',
|
||||||
headers:{'Content-Type':'application/json'},
|
headers:{'Content-Type':'application/json'},
|
||||||
body:JSON.stringify({index})
|
body:JSON.stringify({index})
|
||||||
|
|||||||
Reference in New Issue
Block a user