pull/96/head
Gnieark 8 years ago
parent 71b595dc48
commit fb7f321b9e

@ -61,7 +61,7 @@ function applyInitMessage(req){
}
}
}
function tron(bot1,bot2,xd_check){
function tron(xd_check){
//empty
while (document.getElementById('fightResult').firstChild) {
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);

@ -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" 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>
<p><input id="fightButton" disabled="disabled" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron('<?php echo xd_check_input(2); ?>');"></p>
<div id="fightResult"></div>
</article>
Loading…
Cancel
Save