Actualiser js/prediction.js
This commit is contained in:
+2
-2
@@ -122,7 +122,7 @@ async function loadMatches() {
|
|||||||
// Chargement des joueurs depuis la BDD
|
// Chargement des joueurs depuis la BDD
|
||||||
async function loadPlayers() {
|
async function loadPlayers() {
|
||||||
try {
|
try {
|
||||||
const result = await apiCall('players.php');
|
const result = await apiCall('player.php');
|
||||||
const container = document.getElementById('playersGrid');
|
const container = document.getElementById('playersGrid');
|
||||||
container.innerHTML = '';
|
container.innerHTML = '';
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ async function openPredictionModal(match) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Récupérer l'analyse du matchup
|
// Récupérer l'analyse du matchup
|
||||||
const result = await apiCall(`players.php?action=matchup&player1=${match.player1.id}&player2=${match.player2.id}`);
|
const result = await apiCall(`player.php?action=matchup&player1=${match.player1.id}&player2=${match.player2.id}`);
|
||||||
|
|
||||||
const modal = document.getElementById('predictionModal');
|
const modal = document.getElementById('predictionModal');
|
||||||
const details = document.getElementById('matchDetails');
|
const details = document.getElementById('matchDetails');
|
||||||
|
|||||||
Reference in New Issue
Block a user