refactor router
This commit is contained in:
parent
26f6936d39
commit
1e6e868bfb
2 changed files with 27 additions and 25 deletions
|
|
@ -10,7 +10,7 @@ define(function () {
|
|||
m.setStyle(iconFunc(d))
|
||||
}
|
||||
|
||||
m.on('click', router.node(d, false))
|
||||
m.on('click', router.node(d))
|
||||
m.bindLabel(d.nodeinfo.hostname)
|
||||
|
||||
dict[d.nodeinfo.node_id] = m
|
||||
|
|
@ -38,7 +38,7 @@ define(function () {
|
|||
}
|
||||
|
||||
line.bindLabel(d.source.node.nodeinfo.hostname + " – " + d.target.node.nodeinfo.hostname + "<br><strong>" + showDistance(d) + " / " + showTq(d) + "</strong>")
|
||||
line.on('click', router.link(d, false))
|
||||
line.on('click', router.link(d))
|
||||
|
||||
dict[linkId(d)] = line
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue