routing permalink

This commit is contained in:
Norbert Renner 2014-05-15 20:37:17 +02:00
parent 88e4c164c2
commit 136a182539
7 changed files with 234 additions and 12 deletions

View file

@ -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()});