From 532d993870a21e9c8db3104b2d773506791d2aa7 Mon Sep 17 00:00:00 2001 From: gnieark Date: Wed, 29 Jun 2016 23:50:50 +0200 Subject: [PATCH] fix js --- src/arenas/tron/js.js | 3 +++ src/arenas/tron/public.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js index 0472510..6dc5d24 100644 --- a/src/arenas/tron/js.js +++ b/src/arenas/tron/js.js @@ -20,6 +20,9 @@ function changeSelect(number,botId){ }else{ show_bot_panel(next); } + if(number > 1){ + document.getElementById('fightButton').setAttribute('disabled',''); + } } } function show_bot_panel(number){ diff --git a/src/arenas/tron/public.php b/src/arenas/tron/public.php index 3dfa844..da6083e 100644 --- a/src/arenas/tron/public.php +++ b/src/arenas/tron/public.php @@ -29,7 +29,7 @@ foreach($bots as $bot){

-

+

\ No newline at end of file