Ad debug code
This commit is contained in:
@@ -309,6 +309,7 @@ foreach ($players as $p) {
|
|||||||
if (confirm("Supprimer la partie ?")) {
|
if (confirm("Supprimer la partie ?")) {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('game_id', idPartie);
|
formData.append('game_id', idPartie);
|
||||||
|
console.log("Suppression de la partie ID:", idPartie);
|
||||||
|
|
||||||
fetch('delete_game.php', { method: 'POST', body: formData })
|
fetch('delete_game.php', { method: 'POST', body: formData })
|
||||||
.then(() => window.location.href = 'index.php');
|
.then(() => window.location.href = 'index.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user