From ccc5f0f5267fe6caf366abff61660a2587ac9e97 Mon Sep 17 00:00:00 2001 From: vsandre Date: Fri, 3 Feb 2017 23:02:20 +0100 Subject: [PATCH] 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 --- lib/nodelist.js | 2 +- lib/simplenodelist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodelist.js b/lib/nodelist.js index ee1409c..2130061 100644 --- a/lib/nodelist.js +++ b/lib/nodelist.js @@ -56,7 +56,7 @@ define(["sorttable", "virtual-dom", "numeral"], function (SortTable, V, numeral) td1Content.push(V.h("a", { className: aClass.join(" "), onclick: router.node(d), - href: "#" + href: "#!n:" + d.nodeinfo.node_id }, d.nodeinfo.hostname)) if (has_location(d)) diff --git a/lib/simplenodelist.js b/lib/simplenodelist.js index 3a7e548..8a763df 100644 --- a/lib/simplenodelist.js +++ b/lib/simplenodelist.js @@ -41,7 +41,7 @@ define(["moment", "virtual-dom"], function (moment, V) { td1Content.push(V.h("a", { className: aClass.join(" "), onclick: router.node(d), - href: "#" + href: "#!n:" + d.nodeinfo.node_id }, d.nodeinfo.hostname)) if (has_location(d))