highlight track segment corresponding to hovered table row on map

This commit is contained in:
Norbert Renner 2014-09-16 12:08:38 +02:00
parent 44900f9bd5
commit c48f9ffb5c
2 changed files with 75 additions and 3 deletions

View file

@ -10,6 +10,14 @@ BR.Tabs = BR.Control.extend({
},
onAdd: function (map) {
var tabs = this.options.tabs;
for (var key in tabs) {
if (tabs[key].onAdd) {
tabs[key].onAdd(map);
}
}
$('#tab a').click(function (e) {
e.preventDefault();
$(this).tab('show');