Commit 26fd3e69 authored by Valery Sizov's avatar Valery Sizov

clickable point in graph

parent dae9cd2a
......@@ -89,6 +89,9 @@ function branchGraph(holder) {
}
(function (c, x, y) {
top.push(r.circle(x, y, 10).attr({fill: "#000", opacity: 0, cursor: "pointer"})
.click(function(){
location.href = location.href.replace("graph", "commits/" + c.id);
})
.hover(function () {
var s = r.text(100, 100,c.author + "\n \n" +c.id + "\n \n" + c.message).attr({fill: "#fff"});
this.popup = r.popupit(x, y + 5, s, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment