mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add hide/show feature for neighbors interfaces in the device ports page
This commit is contained in:
@ -122,6 +122,7 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function submitCustomRange(frmdata) {
|
||||
@ -135,3 +136,22 @@ function submitCustomRange(frmdata) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).on("click", '.collapse-neighbors', function(event)
|
||||
{
|
||||
var caller = $(this);
|
||||
var button = caller.find('.neighbors-button');
|
||||
var list = caller.find('.neighbors-interface-list');
|
||||
var continued = caller.find('.neighbors-list-continued');
|
||||
|
||||
if(button.hasClass("glyphicon-triangle-right"))
|
||||
{
|
||||
button.addClass('glyphicon-triangle-bottom').removeClass('glyphicon-triangle-right');
|
||||
}else
|
||||
{
|
||||
button.addClass('glyphicon-triangle-right').removeClass('glyphicon-triangle-bottom');
|
||||
}
|
||||
|
||||
list.toggle();
|
||||
continued.toggle();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user