mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Use unique class name
This commit is contained in:
parent
d274f3e9c0
commit
8ee05e6208
@ -634,9 +634,9 @@ $('button.toggle-ips').click(function() {
|
||||
$('button.toggle-description').click(function() {
|
||||
var selected = $(this).attr('selected');
|
||||
if (selected) {
|
||||
$('#interfaces_table iface.description').hide();
|
||||
$('span.iface-description').hide();
|
||||
} else {
|
||||
$('#interfaces_table iface.description').show();
|
||||
$('span.iface-description').show();
|
||||
}
|
||||
$(this).attr('selected', !selected);
|
||||
$(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked');
|
||||
|
@ -15,7 +15,7 @@
|
||||
{% endif %}
|
||||
<td>
|
||||
{% if iface.description %}
|
||||
<span title="iface.description">{{ iface.description }}</span>
|
||||
<span class="label label-primary iface-description" title="{{ iface.description }}">{{ iface.description }}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user