mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -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() {
|
$('button.toggle-description').click(function() {
|
||||||
var selected = $(this).attr('selected');
|
var selected = $(this).attr('selected');
|
||||||
if (selected) {
|
if (selected) {
|
||||||
$('#interfaces_table iface.description').hide();
|
$('span.iface-description').hide();
|
||||||
} else {
|
} else {
|
||||||
$('#interfaces_table iface.description').show();
|
$('span.iface-description').show();
|
||||||
}
|
}
|
||||||
$(this).attr('selected', !selected);
|
$(this).attr('selected', !selected);
|
||||||
$(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked');
|
$(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked');
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{% if iface.description %}
|
{% if iface.description %}
|
||||||
<span title="iface.description">{{ iface.description }}</span>
|
<span class="label label-primary iface-description" title="{{ iface.description }}">{{ iface.description }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user