mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ var ajax = new Array();
|
||||
function getInterfaceList(sel)
|
||||
{
|
||||
var deviceId = sel.options[sel.selectedIndex].value;
|
||||
document.getElementById('interface_id').options.length = 0; // Empty city select box
|
||||
document.getElementById('port_id').options.length = 0; // Empty city select box
|
||||
if (deviceId.length>0) {
|
||||
var index = ajax.length;
|
||||
ajax[index] = new sack();
|
||||
@@ -19,7 +19,7 @@ function getInterfaceList(sel)
|
||||
|
||||
function createInterfaces(index)
|
||||
{
|
||||
var obj = document.getElementById('interface_id');
|
||||
var obj = document.getElementById('port_id');
|
||||
eval(ajax[index].response); // Executing the response from Ajax as Javascript code
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user