modules/admin-full: fix two issues observed on a virgin install
This commit is contained in:
parent
1f1377fdc4
commit
8eb9335413
2 changed files with 3 additions and 3 deletions
|
@ -247,7 +247,7 @@ function iface_status()
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, device in ipairs(net:get_interfaces()) do
|
for _, device in ipairs(net:get_interfaces() or {}) do
|
||||||
data.subdevices[#data.subdevices+1] = {
|
data.subdevices[#data.subdevices+1] = {
|
||||||
name = device:shortname(),
|
name = device:shortname(),
|
||||||
type = device:type(),
|
type = device:type(),
|
||||||
|
|
|
@ -74,9 +74,9 @@ $Id$
|
||||||
{
|
{
|
||||||
if (ifcs)
|
if (ifcs)
|
||||||
{
|
{
|
||||||
for (var i = 0; i < ifcs.length; i++)
|
for (var idx = 0; idx < ifcs.length; idx++)
|
||||||
{
|
{
|
||||||
var ifc = ifcs[i];
|
var ifc = ifcs[idx];
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
var s = document.getElementById(ifc.id + '-ifc-devices');
|
var s = document.getElementById(ifc.id + '-ifc-devices');
|
||||||
|
|
Loading…
Reference in a new issue