From 08a60cdf952dc80741efba3580ffb0bf756715d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 18 Jan 2023 12:40:34 +0100 Subject: [PATCH] Front --- View/src/JS/Admin2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/View/src/JS/Admin2.js b/View/src/JS/Admin2.js index c3455467..882c8f90 100644 --- a/View/src/JS/Admin2.js +++ b/View/src/JS/Admin2.js @@ -91,6 +91,7 @@ function exec(code, id) { function check() { if (retourSolution == "ERROR") { alert("Il semblerait qu'il y a une erreur de python dans le code : " + terminal); + terminal = ""; } else{ alert("Aucune erreur détectée"); } @@ -102,9 +103,9 @@ async function submit(){ exec("print ('True')", "code"); // exec(test, "solution"); exec(solution, "solution"); - alert("Test en cours..."); var result = document.getElementById("result"); result.innerHTML = "Test en cours..."; await new Promise(r => setTimeout(r, 1500)); check(); + result.innerHTML = ""; } \ No newline at end of file