in server-side/resources/buildServerResources/commandLine.js [28:48]
addOptionsFromModel: function() {
var selectOptions = [], i;
for (i = 0; i < BS.BuildTypes.length; i ++) {
var buildType = BS.BuildTypes[i];
if (buildType.id) {
var text = buildType.fullName + " [" + buildType.externalId + "]";
selectOptions.push({id: buildType.externalId, text: text})
}
}
selectOptions.sort(function(a, b) {
return a.text.localeCompare(b.text);
});
var innerText = "";
for(i = 0; i < selectOptions.length; i ++) {
innerText += "<option value='" + selectOptions[i].id + "'>" + selectOptions[i].text + "</option>"
}
this.selectElement().innerHTML += innerText;
},