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