diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2012-06-15 18:38:30 +0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2012-06-19 17:29:32 +0400 |
commit | efc86f9711240f0fef09ba15ec0fc575a8d7673e (patch) | |
tree | c5e4f9c7b5da404cfbeaf59f20396782895a506a /vendor/assets | |
parent | f33a80a522a712d6404e6de5bed8f86d551ff525 (diff) |
small refactoring for branch-graph.js
Diffstat (limited to 'vendor/assets')
-rw-r--r-- | vendor/assets/javascripts/branch-graph.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/assets/javascripts/branch-graph.js b/vendor/assets/javascripts/branch-graph.js index ad6ceae17c8..063a167701e 100644 --- a/vendor/assets/javascripts/branch-graph.js +++ b/vendor/assets/javascripts/branch-graph.js @@ -79,10 +79,10 @@ function branchGraph(holder) { .attr({stroke: colors[c.space], "stroke-width": 2}); } else if (c.space < commits[i].space) { - r.path(["M", x - 5, y + .0001, "l-5-2,0,4,5,-2C",x-5,y,x -17, y+2, x -20, y-10,"L", cx,y-10,cx , cy]) + r.path(["M", x - 5, y + .0001, "l-5-2,0,4,5,-2C", x - 5, y, x - 17, y + 2, x - 20, y - 10, "L", cx, y - 10, cx, cy]) .attr({stroke: colors[commits[i].space], "stroke-width": 2}); } else { - r.path(["M", x-5, y, "l-5-2,0,4,5,-2C",x-5,y,x -17, y-2, x -20, y+10,"L", cx,y+10,cx , cy]) + r.path(["M", x - 5, y, "l-5-2,0,4,5,-2C", x - 5, y, x - 17, y - 2, x - 20, y + 10, "L", cx, y + 10, cx, cy]) .attr({stroke: colors[commits[i].space], "stroke-width": 2}); } } |