Commit 26fd3e69c9975f0c382e3f61a2a96e3e3f279a8a

Authored by Valery Sizov
1 parent dae9cd2a

clickable point in graph

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
lib/assets/javascripts/branch-graph.js
... ... @@ -89,6 +89,9 @@ function branchGraph(holder) {
89 89 }
90 90 (function (c, x, y) {
91 91 top.push(r.circle(x, y, 10).attr({fill: "#000", opacity: 0, cursor: "pointer"})
  92 + .click(function(){
  93 + location.href = location.href.replace("graph", "commits/" + c.id);
  94 + })
92 95 .hover(function () {
93 96 var s = r.text(100, 100,c.author + "\n \n" +c.id + "\n \n" + c.message).attr({fill: "#fff"});
94 97 this.popup = r.popupit(x, y + 5, s, 0);
... ...