fix js & del refresh bots list function. (will be a framework role)
This commit is contained in:
parent
834db5df20
commit
95feda0639
|
@ -22,18 +22,5 @@ function tictactoe(bot1,bot2,xd_check){
|
||||||
}};
|
}};
|
||||||
xhr.open("POST", 'index.php', true);
|
xhr.open("POST", 'index.php', true);
|
||||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||||
xhr.send('act=fight&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + ,xd_check);
|
xhr.send('act=fight&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + xd_check);
|
||||||
}
|
}
|
||||||
|
|
||||||
function refreshBots(){
|
|
||||||
var xhr = Ajx();
|
|
||||||
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
|
|
||||||
if(xhr.status == 200) {
|
|
||||||
window.location.reload();
|
|
||||||
}
|
|
||||||
}};
|
|
||||||
xhr.open("POST", 'index.php', true);
|
|
||||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
||||||
xhr.send('act=reDownloadBotsList');
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user