mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
New networkmaps in progress... (Added text to empty interface table)
This commit is contained in:
parent
0b758a6b0c
commit
80575e9344
@ -545,26 +545,32 @@ function edit_node(data, dblClick) {
|
|||||||
url: action="ajax.php",
|
url: action="ajax.php",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
jQuery.each(data, function(j, interface) {
|
if (data.length == 0) {
|
||||||
$("#interface_information").find('tbody')
|
$("#interface_information").find('tbody')
|
||||||
.append($('<tr>')
|
.append($('<tr>').html("<p style=\"text-align: center;\">It has no interface to display</p>"));
|
||||||
.append($('<td>')
|
}
|
||||||
.html(interface['name'])
|
else {
|
||||||
)
|
jQuery.each(data, function(j, interface) {
|
||||||
.append($('<td>')
|
$("#interface_information").find('tbody')
|
||||||
.html(interface['status'])
|
.append($('<tr>')
|
||||||
)
|
.append($('<td>')
|
||||||
.append($('<td>')
|
.html(interface['name'])
|
||||||
.html(interface['graph'])
|
)
|
||||||
)
|
.append($('<td>')
|
||||||
.append($('<td>')
|
.html(interface['status'])
|
||||||
.html(interface['ip'])
|
)
|
||||||
)
|
.append($('<td>')
|
||||||
.append($('<td>')
|
.html(interface['graph'])
|
||||||
.html(interface['mac'])
|
)
|
||||||
)
|
.append($('<td>')
|
||||||
);
|
.html(interface['ip'])
|
||||||
});
|
)
|
||||||
|
.append($('<td>')
|
||||||
|
.html(interface['mac'])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user