Fix: Profile params of type 'select' ignored default value from profile
This commit is contained in:
parent
e5dc5181d8
commit
3457f92fbf
1 changed files with 3 additions and 0 deletions
|
|
@ -260,6 +260,9 @@ BR.Profile = L.Evented.extend({
|
||||||
Object.keys(paramValues).forEach(function(paramValue) {
|
Object.keys(paramValues).forEach(function(paramValue) {
|
||||||
var option = document.createElement('option');
|
var option = document.createElement('option');
|
||||||
option.value = paramValue;
|
option.value = paramValue;
|
||||||
|
if (paramValue == params[param].value) {
|
||||||
|
option.selected = true;
|
||||||
|
}
|
||||||
option.append(paramValues[paramValue]);
|
option.append(paramValues[paramValue]);
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue