Commit a6b8b18d authored by Tom Kunze's avatar Tom Kunze
Browse files

server: Fix hidden request buttons

JQuery show()/hide() do not work when using display:none with !important.
parent 6f93eff2
......@@ -375,6 +375,10 @@ table.privacyoverview td:first-child {
*/
.hidden {
display: none;
}
.ihidden {
display: none !important;
}
......
......@@ -115,9 +115,9 @@ function markCurrentMachine(hostname){
}
function markCurrentRoom(roomname) {
$('a.btn-room > i.material-icons').addClass('hidden');
$('a.btn-room > i.material-icons').addClass('ihidden');
$('a.btn-room[data-cip="' + roomname + '"] > i.material-icons')
.removeClass('hidden');
.removeClass('ihidden');
}
function isBarCollapsed(name) {
......
{% for r in rooms %}
<li class="{% if room.name == r.name %}active{% endif %}">
<a class="colloquial btn-room" href="{% url 'index-room' r.name %}" data-cip="{{ r.name }}" data-long="{{ r.name_long }}" data-number="{{ r.name_number }}">
<i class="material-icons left{% if ownroomname != r.name %} hidden{% endif %}">computer</i>
<i class="material-icons left{% if ownroomname != r.name %} ihidden{% endif %}">computer</i>
<span>{{ r.name_number }}</span>
</a>
</li>
......
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