This commit is contained in:
gnieark 2016-06-29 23:50:50 +02:00
parent df62ada9f0
commit 532d993870
2 changed files with 4 additions and 1 deletions

View File

@ -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){

View File

@ -29,7 +29,7 @@ foreach($bots as $bot){
<p><input type="checkbox" id="fullLogs"/><label for="fullLogs">view the full logs</label></p>
<p><input id="fightButton" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron(document.getElementById('bot1').value,document.getElementById('bot2').value,'<?php echo xd_check_input(2); ?>');"></p>
<p><input id="fightButton" disabled="disabled" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron(document.getElementById('bot1').value,document.getElementById('bot2').value,'<?php echo xd_check_input(2); ?>');"></p>
<div id="fightResult"></div>
</article>