Browse Source

Open nodegraph in new tab when clicking on it

Michael Schwarz 9 years ago
parent
commit
9cd66efe8c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      lib/infobox/node.js

+ 7 - 1
lib/infobox/node.js

@@ -78,7 +78,13 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
       var image = document.createElement("img")
       image.setAttribute("src", "nodestats/" + d.nodeinfo.node_id + ".png")
       image.setAttribute("width", "100%")
-      el.appendChild(image)
+
+	  var link = document.createElement("a")
+	  link.appendChild(image)
+	  link.title = "nodegraph"
+	  link.href = "nodestats/" + d.nodeinfo.node_id + ".png"
+	  link.target = "_blank"
+      el.appendChild(link)
     }
   }