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 p=createElem('p');
var select = createElem('select',{'id':'selectBot' + number, 'onchange':'changeSelect(this.value);'});
for each (var bot in botsAvailable){
var option = createElem('option',{'value':bot['id']});
option.innerHTML = bot['name'];
for (var i = 0; i < botsAvailable.length; i++){
var option = createElem('option',{'value': botsAvailable[i]['id']});
option.innerHTML = botsAvailable[i]['name'];
select.appendChild(option);
}
p.appendChild(select);