tfgyifunydrigdrhgerhgiuhgudriughdriuh diu h iuehiurhgiushbuguheiug hdiubh debh dxhbdeh kuse
This commit is contained in:
+4
-4
@@ -59,7 +59,7 @@ foreach ($players as $p) {
|
||||
<div class="stats-bar">
|
||||
<div class="stat-item">POT TOTAL: <strong id="main-pot"><?php echo $game['pot'] ?? 0; ?></strong> 🪙</div>
|
||||
<div class="stat-item">MISE ACTUELLE: <strong id="current-bet"><?php echo $game['last_bet'] ?? 0; ?></strong></div>
|
||||
<button onclick="deleteGame(<?php echo $game_id; ?>)" class="btn-back">Fermer la table</button>
|
||||
<button onclick="deleteGame()" class="btn-back">Fermer la table</button>
|
||||
<button onclick="changePlayer()" class="btn-back">Joueur suivant</button>
|
||||
<a href="index.php" class="btn-back">⬅ Quitter</a>
|
||||
</div>
|
||||
@@ -305,11 +305,11 @@ foreach ($players as $p) {
|
||||
});
|
||||
}
|
||||
|
||||
function deleteGame(idPartie) {
|
||||
function deleteGame() {
|
||||
if (confirm("Supprimer la partie ?")) {
|
||||
let formData = new FormData();
|
||||
formData.append('game_id', idPartie);
|
||||
console.log("Suppression de la partie ID:", idPartie);
|
||||
formData.append('game_id', actualGameID);
|
||||
console.log("Suppression de la partie ID:", actualGameID);
|
||||
|
||||
fetch('delete_game.php', { method: 'POST', body: formData })
|
||||
.then(() => window.location.href = 'index.php');
|
||||
|
||||
Reference in New Issue
Block a user