mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Missed the uncheck class option. Revert !selected
This commit is contained in:
parent
1baad763f8
commit
c84226b0b5
@ -389,7 +389,7 @@
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span> Show IPs
|
||||
</button>
|
||||
<button class="btn btn-default btn-xs toggle-description">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span> Show Descriptions
|
||||
<span class="glyphicon glyphicon-uncheck" aria-hidden="true"></span> Show Descriptions
|
||||
</button>
|
||||
{% if perms.dcim.change_interface and interfaces|length > 1 %}
|
||||
<button class="btn btn-default btn-xs toggle">
|
||||
@ -640,7 +640,7 @@ $('button.toggle-description').click(function() {
|
||||
$('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');
|
||||
return false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user