fix js
This commit is contained in:
parent
df62ada9f0
commit
532d993870
|
@ -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){
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue
Block a user