routing permalink
This commit is contained in:
parent
88e4c164c2
commit
136a182539
7 changed files with 234 additions and 12 deletions
|
|
@ -17,7 +17,16 @@ BR.RoutingOptions = BR.Control.extend({
|
|||
alternative: L.DomUtil.get('alternative').value
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
setOptions: function(options) {
|
||||
if (options.profile) {
|
||||
L.DomUtil.get('profile').value = options.profile;
|
||||
}
|
||||
if (options.alternative) {
|
||||
L.DomUtil.get('alternative').value = options.alternative;
|
||||
}
|
||||
},
|
||||
|
||||
_getChangeHandler: function() {
|
||||
return L.bind(function(evt) {
|
||||
this.fire('update', {options: this.getOptions()});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue