Remove profile from footer, already in header

This commit is contained in:
Norbert Renner 2018-01-27 10:34:43 +01:00
parent 061ca795f3
commit a5c6e338b6
3 changed files with 1 additions and 9 deletions

View file

@ -52,6 +52,7 @@ footer {
flex-grow: 1; flex-grow: 1;
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: center;
} }
#stats li { #stats li {
margin: 0 1rem; margin: 0 1rem;

View file

@ -201,10 +201,6 @@
<footer> <footer>
<div class="flexrow"> <div class="flexrow">
<ul id="stats"> <ul id="stats">
<li>
<div class="text-muted small hidden-sm-down">Profile</div>
<p class="stats-label" id="stat-profile">Profile</p>
</li>
<li> <li>
<div class="text-muted small hidden-sm-down">Distance</div> <div class="text-muted small hidden-sm-down">Distance</div>
<p class="stats-label" id="distance">0 <abbr title="kilometer">km</abbr></p> <p class="stats-label" id="distance">0 <abbr title="kilometer">km</abbr></p>

View file

@ -18,11 +18,6 @@ BR.RoutingOptions = BR.Control.extend({
}, },
refreshUI: function() { refreshUI: function() {
var profile = $('#profile option:selected'),
alternative = $('#alternative option:selected');
$('#stat-profile').html(profile.text() + ' (' + alternative.text() +')');
// we do not allow to select more than one profile and/or alternative at a time // we do not allow to select more than one profile and/or alternative at a time
// so we disable the current selected items // so we disable the current selected items
$('#profile-alternative').find('option:disabled').each(function(index) { $('#profile-alternative').find('option:disabled').each(function(index) {