This commit is contained in:
gnieark 2016-06-29 23:25:28 +02:00
parent c11153226d
commit 9a9e9c7b22

View File

@ -19,6 +19,9 @@ function show_bot_panel(number){
fieldset.appendChild(legend); fieldset.appendChild(legend);
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);'});
var option = createElem('option',{'value': '0', 'selected': 'selected'});
option.innerHTML = '';
select.appendChild(option);
for (var i = 0; i < botsAvailable.length; i++){ for (var i = 0; i < botsAvailable.length; i++){
var option = createElem('option',{'value': botsAvailable[i]['id']}); var option = createElem('option',{'value': botsAvailable[i]['id']});
option.innerHTML = botsAvailable[i]['name']; option.innerHTML = botsAvailable[i]['name'];