mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Fix rack elevation image toggles
This commit is contained in:
parent
b9af6ef841
commit
7a61354d8c
@ -8,6 +8,6 @@ $('button.toggle-images').click(function() {
|
||||
$('.device-image', rack_elevation.contents()).removeClass('hidden');
|
||||
}
|
||||
$(this).attr('selected', !selected);
|
||||
$(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked');
|
||||
$(this).children('span').toggleClass('mdi-checkbox-marked-circle-outline mdi-checkbox-blank-circle-outline');
|
||||
return false;
|
||||
});
|
||||
|
@ -55,7 +55,7 @@
|
||||
{% include 'inc/created_updated.html' with obj=rack %}
|
||||
<div class="pull-right noprint">
|
||||
<button class="btn btn-sm btn-default toggle-images" selected="selected">
|
||||
<span class="mdi mdi-check-bold" aria-hidden="true"></span> Show Images
|
||||
<span class="mdi mdi-checkbox-marked-circle-outline" aria-hidden="true"></span> Show Images
|
||||
</button>
|
||||
{% custom_links rack %}
|
||||
</div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
{% block content %}
|
||||
<div class="btn-toolbar pull-right noprint" role="toolbar">
|
||||
<button class="btn btn-default toggle-images" selected="selected">
|
||||
<span class="mdi mdi-check-bold" aria-hidden="true"></span> Show Images
|
||||
<span class="mdi mdi mdi-checkbox-marked-circle-outline" aria-hidden="true"></span> Show Images
|
||||
</button>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{% url 'dcim:rack_elevation_list' %}{% querystring request face='front' %}" class="btn btn-default{% if rack_face == 'front' %} active{% endif %}">Front</a>
|
||||
|
Loading…
Reference in New Issue
Block a user