Merge pull request #216 from rkflx/statistics-bar-show-all-entries
Always show travel time and energy
This commit is contained in:
commit
ea9cc49dd4
2 changed files with 2 additions and 8 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue