summaryrefslogtreecommitdiff
path: root/lib/assets
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2012-01-07 13:21:35 +0200
committerValery Sizov <vsv2711@gmail.com>2012-01-07 13:21:35 +0200
commit26fd3e69c9975f0c382e3f61a2a96e3e3f279a8a (patch)
tree957856e46efdb72279f5be5945ef92f42b3bda95 /lib/assets
parentdae9cd2af62ed857f8a4b1a3ae65972fb685659f (diff)
downloadgitlab-ce-26fd3e69c9975f0c382e3f61a2a96e3e3f279a8a.tar.gz
clickable point in graph
Diffstat (limited to 'lib/assets')
-rw-r--r--lib/assets/javascripts/branch-graph.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/assets/javascripts/branch-graph.js b/lib/assets/javascripts/branch-graph.js
index b1e3ee04b4b..f46dbd17754 100644
--- a/lib/assets/javascripts/branch-graph.js
+++ b/lib/assets/javascripts/branch-graph.js
@@ -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);