reuse existing custom profile file in editing session by passing id in URL
This commit is contained in:
parent
973d8bab75
commit
3c0765547c
3 changed files with 23 additions and 4 deletions
|
|
@ -52,6 +52,17 @@ BR.RoutingOptions = BR.Control.extend({
|
|||
}
|
||||
},
|
||||
|
||||
getCustomProfile: function() {
|
||||
var select = L.DomUtil.get('profile'),
|
||||
option = select.options[0],
|
||||
profile = null;
|
||||
|
||||
if (!option.disabled) {
|
||||
profile = option.value;
|
||||
}
|
||||
return profile;
|
||||
},
|
||||
|
||||
_getChangeHandler: function() {
|
||||
return L.bind(function(evt) {
|
||||
this.fire('update', {options: this.getOptions()});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue