Change description classes and try to hide comment bubble

This commit is contained in:
Joseph Kennedy 2017-08-28 17:24:49 -04:00
parent 8ee05e6208
commit da1ade224e
2 changed files with 3 additions and 1 deletions

View File

@ -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');

View File

@ -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>