js
This commit is contained in:
parent
561d76001b
commit
a429064dd2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user