Replace left and bottom arrow icons by plus and minus icons

This commit is contained in:
Louis Bailleul
2015-11-19 12:01:10 +00:00
parent 493e0f33e3
commit db37acbe83
2 changed files with 4 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ echo '</td>';
echo '<td width=375 valign=top class="interface-desc">';
$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;">';
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) {

View File

@@ -143,12 +143,12 @@ $(document).on("click", '.collapse-neighbors', function(event)
var list = caller.find('.neighbors-interface-list');
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
{
button.addClass('glyphicon-triangle-right').removeClass('glyphicon-triangle-bottom');
button.addClass('glyphicon-plus').removeClass('glyphicon-minus');
}
list.toggle();