Add hide/show feature for neighbors interfaces in the device ports page

This commit is contained in:
Louis Bailleul
2015-11-19 09:54:26 +00:00
parent fc85b71207
commit 32f97ab424
3 changed files with 45 additions and 13 deletions

View File

@ -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();
});