Always show travel time and energy
Always show the entries for travel time and energy in the statistics bar, so the layout does not suddenly change when starting to draw a route.
This commit is contained in:
parent
929d6bf523
commit
632e094fb3
2 changed files with 2 additions and 8 deletions
|
|
@ -56,12 +56,6 @@ BR.TrackStats = L.Class.extend({
|
|||
$('#totaltime').html(formattedTime);
|
||||
$('#totalenergy').html(formattedEnergy);
|
||||
$('#meanenergy').html(meanEnergy);
|
||||
document.getElementById(
|
||||
'totaltime'
|
||||
).parentElement.parentElement.hidden = !stats.totalTime;
|
||||
document.getElementById(
|
||||
'totalenergy'
|
||||
).parentElement.parentElement.hidden = !stats.totalEnergy;
|
||||
},
|
||||
|
||||
calcStats: function(polyline, segments) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue