Commit 96a9ede8 authored by Tom Kunze's avatar Tom Kunze
Browse files

server: Fix colloquial names in navigation

parent 5121bb63
......@@ -244,15 +244,10 @@ function updateRoomNames() {
} else {
colloquial = colloquial == 'true';
}
if (colloquial) {
$('.colloquial > span').each(function(i, e) {
$(e).text($(e).data('long'));
});
} else {
$('.colloquial > span').each(function(i, e) {
$(e).text($(e).data('number'));
});
}
var dataname = colloquial ? 'long' : 'number';
$('.colloquial').each(function(i, e) {
$(e).children('span').text($(e).data(dataname));
});
}
function convertSecToText(secs){
......
......@@ -71,7 +71,7 @@
</ul>
<ul id="nav-mobile-right" class="right hide-on-large-only">
<li><a class="right dropdown-trigger" href="#!" data-target="dropdown-rooms"><span class="colloquial" data-long="{{ room.name_long|default:'Rooms' }}" data-number="{{ room.name_number|default:'Rooms' }}">{{ room.name_number|default:'Rooms' }}</span><i class="material-icons right">arrow_drop_down</i></a></li>
<li><a class="right dropdown-trigger" href="#!" data-target="dropdown-rooms"><span class="colloquial" data-long="{{ room.name_long|default:'Rooms' }}" data-number="{{ room.name_number|default:'Rooms' }}"><span>{{ room.name_number|default:'Rooms' }}</span></span><i class="material-icons right">arrow_drop_down</i></a></li>
</ul>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment