nodelist: Add node id to the href of node name in the table (#84)
So it is possible to open multiple node pages in a new window/tab
This commit is contained in:
parent
5cb88e8d06
commit
ccc5f0f526
|
@ -56,7 +56,7 @@ define(["sorttable", "virtual-dom", "numeral"], function (SortTable, V, numeral)
|
||||||
|
|
||||||
td1Content.push(V.h("a", { className: aClass.join(" "),
|
td1Content.push(V.h("a", { className: aClass.join(" "),
|
||||||
onclick: router.node(d),
|
onclick: router.node(d),
|
||||||
href: "#"
|
href: "#!n:" + d.nodeinfo.node_id
|
||||||
}, d.nodeinfo.hostname))
|
}, d.nodeinfo.hostname))
|
||||||
|
|
||||||
if (has_location(d))
|
if (has_location(d))
|
||||||
|
|
|
@ -41,7 +41,7 @@ define(["moment", "virtual-dom"], function (moment, V) {
|
||||||
|
|
||||||
td1Content.push(V.h("a", { className: aClass.join(" "),
|
td1Content.push(V.h("a", { className: aClass.join(" "),
|
||||||
onclick: router.node(d),
|
onclick: router.node(d),
|
||||||
href: "#"
|
href: "#!n:" + d.nodeinfo.node_id
|
||||||
}, d.nodeinfo.hostname))
|
}, d.nodeinfo.hostname))
|
||||||
|
|
||||||
if (has_location(d))
|
if (has_location(d))
|
||||||
|
|
Loading…
Reference in a new issue