gluon-status-page: Use querySelector instead of firstElementChild
This commit is contained in:
parent
68a5a74d1d
commit
1ceb4428da
File diff suppressed because one or more lines are too long
@ -444,7 +444,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Neighbour(iface, addr, color, destroy) {
|
function Neighbour(iface, addr, color, destroy) {
|
||||||
var th = iface.tbody.firstElementChild;
|
var th = iface.tbody.querySelector('tr');
|
||||||
var el = iface.tbody.insertRow();
|
var el = iface.tbody.insertRow();
|
||||||
|
|
||||||
var tdHostname = el.insertCell();
|
var tdHostname = el.insertCell();
|
||||||
@ -692,7 +692,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var info = {
|
var info = {
|
||||||
'tbody': el.firstElementChild.firstElementChild,
|
'tbody': el.querySelector('tbody'),
|
||||||
'signalgraph': signalgraph,
|
'signalgraph': signalgraph,
|
||||||
'ifname': ifname,
|
'ifname': ifname,
|
||||||
'wireless': wireless,
|
'wireless': wireless,
|
||||||
|
Loading…
Reference in New Issue
Block a user