infobox/node: change mac used to lookup nodes
This commit is contained in:
parent
0171ebe7e1
commit
2ca2604403
3 changed files with 9 additions and 10 deletions
|
@ -317,11 +317,11 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
|||
if (!d)
|
||||
return null
|
||||
|
||||
var node = nodeDict[d.substr(9)]
|
||||
var node = nodeDict[d.substr(0, 8)]
|
||||
if (!node)
|
||||
return d
|
||||
|
||||
return {node: node}
|
||||
return node
|
||||
}
|
||||
|
||||
function showGateway(d, router, nodeDict) {
|
||||
|
@ -336,10 +336,10 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
|||
return function (el) {
|
||||
if (nh) {
|
||||
el.appendChild(createLink(lookupNode(nh, nodeDict), router))
|
||||
if (nh.substr(9) !== gw.substr(9))
|
||||
if (nh.substr(0, 8) !== gw.substr(0, 8))
|
||||
el.appendChild(document.createTextNode(" -> ... -> "))
|
||||
}
|
||||
if (!nh || nh.substr(9) !== gw.substr(9))
|
||||
if (!nh || nh.substr(0, 8) !== gw.substr(0, 8))
|
||||
el.appendChild(createLink(lookupNode(gw, nodeDict), router))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue