This commit is contained in:
gnieark 2016-06-29 23:16:04 +02:00
parent 561d76001b
commit a429064dd2

View File

@ -16,9 +16,9 @@ function show_bot_panel(number){
var fieldset = createElem('fieldset',{'class':'botFormulaire'}); var fieldset = createElem('fieldset',{'class':'botFormulaire'});
var p=createElem('p'); var p=createElem('p');
var select = createElem('select',{'id':'selectBot' + number, 'onchange':'changeSelect(this.value);'}); var select = createElem('select',{'id':'selectBot' + number, 'onchange':'changeSelect(this.value);'});
for each (var bot in botsAvailable){ for (var i = 0; i < botsAvailable.length; i++){
var option = createElem('option',{'value':bot['id']}); var option = createElem('option',{'value': botsAvailable[i]['id']});
option.innerHTML = bot['name']; option.innerHTML = botsAvailable[i]['name'];
select.appendChild(option); select.appendChild(option);
} }
p.appendChild(select); p.appendChild(select);