From 95feda0639fcf1119eb23ecfd690e45f7bb53543 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 28 Nov 2015 15:19:02 +0100 Subject: [PATCH] fix js & del refresh bots list function. (will be a framework role) --- src/arenas/tictactoe/js.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/arenas/tictactoe/js.js b/src/arenas/tictactoe/js.js index 6ff0855..465aaeb 100644 --- a/src/arenas/tictactoe/js.js +++ b/src/arenas/tictactoe/js.js @@ -22,18 +22,5 @@ function tictactoe(bot1,bot2,xd_check){ }}; xhr.open("POST", 'index.php', true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - 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'); - } - \ No newline at end of file + xhr.send('act=fight&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + xd_check); +} \ No newline at end of file