clickable point in graph
This commit is contained in:
parent
dae9cd2af6
commit
26fd3e69c9
|
@ -89,6 +89,9 @@ function branchGraph(holder) {
|
||||||
}
|
}
|
||||||
(function (c, x, y) {
|
(function (c, x, y) {
|
||||||
top.push(r.circle(x, y, 10).attr({fill: "#000", opacity: 0, cursor: "pointer"})
|
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 () {
|
.hover(function () {
|
||||||
var s = r.text(100, 100,c.author + "\n \n" +c.id + "\n \n" + c.message).attr({fill: "#fff"});
|
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);
|
this.popup = r.popupit(x, y + 5, s, 0);
|
||||||
|
|
Loading…
Reference in a new issue