mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	use correct ifname/ifrescr on vlan page, remove base_url from interfacepicker
git-svn-id: http://www.observium.org/svn/observer/trunk@2676 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -11,7 +11,7 @@ function getInterfaceList(sel)
 | 
			
		||||
                var index = ajax.length;
 | 
			
		||||
                ajax[index] = new sack();
 | 
			
		||||
 | 
			
		||||
                ajax[index].requestFile = '<?php echo($config['base_url']); ?>/ajax_listports.php?device_id='+deviceId;    // Specifying which file to get
 | 
			
		||||
                ajax[index].requestFile = 'ajax_listports.php?device_id='+deviceId;    // Specifying which file to get
 | 
			
		||||
                ajax[index].onCompletion = function() { createInterfaces(index) };       // Specify function that will be executed after file has been found
 | 
			
		||||
                ajax[index].runAJAX();          // Execute AJAX function
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?
 | 
			
		||||
  }
 | 
			
		||||
  else
 | 
			
		||||
  {
 | 
			
		||||
    echo($vlan['port_sep'] . generate_port_link($port, makeshortif($port['ifDescr'])));
 | 
			
		||||
    echo($vlan['port_sep'] . generate_port_link($port, makeshortif(ifnamedescr($port))));
 | 
			
		||||
    $vlan['port_sep'] = ", ";
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user