summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-07 12:41:57 +0100
committerwinniehell <git@winniehell.de>2016-08-02 03:32:28 +0200
commit010477edc034330dfe4bce7b4dfac252e1fb0a25 (patch)
tree03240ff59702ecbcc9d73004177a384e203ed1d2
parentae9f0ca818b203df3bf61e5598c4e7e63c4c2d70 (diff)
downloadgitlab-ce-010477edc034330dfe4bce7b4dfac252e1fb0a25.tar.gz
Append .json onto graph request URL (!5136)
-rw-r--r--app/views/projects/graphs/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/graphs/show.html.haml b/app/views/projects/graphs/show.html.haml
index a985b442b2d..8777e0d8fcd 100644
--- a/app/views/projects/graphs/show.html.haml
+++ b/app/views/projects/graphs/show.html.haml
@@ -32,7 +32,7 @@
:javascript
$.ajax({
type: "GET",
- url: location.href,
+ url: "#{namespace_project_graph_path(@project.namespace, @project, current_ref, :json)}",
dataType: "json",
success: function (data) {
var graph = new ContributorsStatGraph();