mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Remove interface IPs toggle
This commit is contained in:
parent
a969b81e63
commit
00caa368c5
@ -1,16 +1,3 @@
|
|||||||
// Toggle the display of IP addresses under interfaces
|
|
||||||
$('button.toggle-ips').click(function() {
|
|
||||||
var selected = $(this).attr('selected');
|
|
||||||
if (selected) {
|
|
||||||
$('#interfaces_table tr.interface:visible + tr.ipaddresses').hide();
|
|
||||||
} else {
|
|
||||||
$('#interfaces_table tr.interface:visible + tr.ipaddresses').show();
|
|
||||||
}
|
|
||||||
$(this).attr('selected', !selected);
|
|
||||||
$(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked');
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Inteface filtering
|
// Inteface filtering
|
||||||
$('input.interface-filter').on('input', function() {
|
$('input.interface-filter').on('input', function() {
|
||||||
var filter = new RegExp(this.value);
|
var filter = new RegExp(this.value);
|
||||||
|
@ -485,11 +485,6 @@
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<strong>Interfaces</strong>
|
<strong>Interfaces</strong>
|
||||||
<div class="pull-right noprint">
|
|
||||||
<button class="btn btn-default btn-xs toggle-ips" selected="selected">
|
|
||||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span> Show IPs
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2 pull-right noprint">
|
<div class="col-md-2 pull-right noprint">
|
||||||
<input class="form-control interface-filter" type="text" placeholder="Filter" title="Filter text (regular expressions supported)" style="height: 23px" />
|
<input class="form-control interface-filter" type="text" placeholder="Filter" title="Filter text (regular expressions supported)" style="height: 23px" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -276,11 +276,6 @@
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<strong>Interfaces</strong>
|
<strong>Interfaces</strong>
|
||||||
<div class="pull-right">
|
|
||||||
<button class="btn btn-default btn-xs toggle-ips" selected="selected">
|
|
||||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span> Show IPs
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2 pull-right noprint">
|
<div class="col-md-2 pull-right noprint">
|
||||||
<input class="form-control interface-filter" type="text" placeholder="Filter" title="RegEx-enabled" style="height: 23px" />
|
<input class="form-control interface-filter" type="text" placeholder="Filter" title="RegEx-enabled" style="height: 23px" />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user