mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Replace left and bottom arrow icons by plus and minus icons
This commit is contained in:
@@ -179,7 +179,7 @@ echo '</td>';
|
|||||||
echo '<td width=375 valign=top class="interface-desc">';
|
echo '<td width=375 valign=top class="interface-desc">';
|
||||||
|
|
||||||
$neighborsCount=0;
|
$neighborsCount=0;
|
||||||
echo '<div class="collapse-neighbors"><span class="neighbors-button glyphicon glyphicon-triangle-right" aria-hidden="true"></span>
|
echo '<div class="collapse-neighbors"><span class="neighbors-button glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||||
<span class="neighbors-interface-list-firsts" style="display: inline;">';
|
<span class="neighbors-interface-list-firsts" style="display: inline;">';
|
||||||
if (strpos($port['label'], 'oopback') === false && !$graph_type) {
|
if (strpos($port['label'], 'oopback') === false && !$graph_type) {
|
||||||
foreach (dbFetchRows('SELECT * FROM `links` AS L, `ports` AS I, `devices` AS D WHERE L.local_port_id = ? AND L.remote_port_id = I.port_id AND I.device_id = D.device_id', array($if_id)) as $link) {
|
foreach (dbFetchRows('SELECT * FROM `links` AS L, `ports` AS I, `devices` AS D WHERE L.local_port_id = ? AND L.remote_port_id = I.port_id AND I.device_id = D.device_id', array($if_id)) as $link) {
|
||||||
|
@@ -143,12 +143,12 @@ $(document).on("click", '.collapse-neighbors', function(event)
|
|||||||
var list = caller.find('.neighbors-interface-list');
|
var list = caller.find('.neighbors-interface-list');
|
||||||
var continued = caller.find('.neighbors-list-continued');
|
var continued = caller.find('.neighbors-list-continued');
|
||||||
|
|
||||||
if(button.hasClass("glyphicon-triangle-right"))
|
if(button.hasClass("glyphicon-plus"))
|
||||||
{
|
{
|
||||||
button.addClass('glyphicon-triangle-bottom').removeClass('glyphicon-triangle-right');
|
button.addClass('glyphicon-minus').removeClass('glyphicon-plus');
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
button.addClass('glyphicon-triangle-right').removeClass('glyphicon-triangle-bottom');
|
button.addClass('glyphicon-plus').removeClass('glyphicon-minus');
|
||||||
}
|
}
|
||||||
|
|
||||||
list.toggle();
|
list.toggle();
|
||||||
|
Reference in New Issue
Block a user