mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Change description classes and try to hide comment bubble
This commit is contained in:
parent
8ee05e6208
commit
da1ade224e
@ -635,8 +635,10 @@ $('button.toggle-description').click(function() {
|
|||||||
var selected = $(this).attr('selected');
|
var selected = $(this).attr('selected');
|
||||||
if (selected) {
|
if (selected) {
|
||||||
$('span.iface-description').hide();
|
$('span.iface-description').hide();
|
||||||
|
$('i.fa-comment-o').show();
|
||||||
} else {
|
} else {
|
||||||
$('span.iface-description').show();
|
$('span.iface-description').show();
|
||||||
|
$('i.fa-comment-o').hide();
|
||||||
}
|
}
|
||||||
$(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 class="label label-primary iface-description" title="{{ iface.description }}">{{ iface.description }}</span>
|
<span class="text-muted iface-description" title="{{ iface.description }}">{{ iface.description }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user