refactor router

This commit is contained in:
Nils Schneider 2015-03-25 20:55:49 +01:00
commit 1e6e868bfb
2 changed files with 27 additions and 25 deletions

View file

@ -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