Merge pull request #216 from rkflx/statistics-bar-show-all-entries

Always show travel time and energy
This commit is contained in:
Norbert Renner 2019-07-02 17:40:21 +02:00 committed by GitHub
commit ea9cc49dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -966,7 +966,7 @@
> >
</p> </p>
</li> </li>
<li hidden> <li>
<div <div
class="text-muted small d-none d-sm-block" class="text-muted small d-none d-sm-block"
data-i18n="footer.travel-time" data-i18n="footer.travel-time"
@ -982,7 +982,7 @@
> >
</p> </p>
</li> </li>
<li hidden> <li>
<div class="text-muted small d-none d-sm-block"> <div class="text-muted small d-none d-sm-block">
<span data-i18n="footer.total-energy" <span data-i18n="footer.total-energy"
>Total Energy</span >Total Energy</span

View file

@ -56,12 +56,6 @@ BR.TrackStats = L.Class.extend({
$('#totaltime').html(formattedTime); $('#totaltime').html(formattedTime);
$('#totalenergy').html(formattedEnergy); $('#totalenergy').html(formattedEnergy);
$('#meanenergy').html(meanEnergy); $('#meanenergy').html(meanEnergy);
document.getElementById(
'totaltime'
).parentElement.parentElement.hidden = !stats.totalTime;
document.getElementById(
'totalenergy'
).parentElement.parentElement.hidden = !stats.totalEnergy;
}, },
calcStats: function(polyline, segments) { calcStats: function(polyline, segments) {