bon ok, ça fait une heure que je lutte à cause de cet oubli

This commit is contained in:
gnieark 2016-05-14 23:53:10 +02:00
parent 9f217eeeb1
commit e32760329a

View File

@ -23,6 +23,7 @@ function connectFour(bot1,bot2,xd_check, newGame){
newGame = true;
}
if (newGame){
//empty
while (document.getElementById('fightResult').firstChild) {
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);
@ -40,7 +41,7 @@ function connectFour(bot1,bot2,xd_check, newGame){
table.appendChild(tr);
}
document.getElementById('fightResult').appendChild(table);
}
var xhr = Ajx();
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
if(xhr.status == 200) {