diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-07 11:55:31 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-07 11:55:31 +0100 |
commit | e3b5912d634f0b879a1ebc23fa38e6f21ffcae74 (patch) | |
tree | 094d8b90e6ad33a67d7287af064a8fea9bb40dae | |
parent | 54a234b94062d3fb669fcbdd76ed4460a39eb3ca (diff) | |
download | gitlab-ce-e3b5912d634f0b879a1ebc23fa38e6f21ffcae74.tar.gz |
gets the new object through /simple endpoint and renders on the dropdown
-rw-r--r-- | app/assets/javascripts/api.js.coffee | 2 | ||||
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/api.js.coffee b/app/assets/javascripts/api.js.coffee index cf46f15a156..45059ae4042 100644 --- a/app/assets/javascripts/api.js.coffee +++ b/app/assets/javascripts/api.js.coffee @@ -3,7 +3,7 @@ groupPath: "/api/:version/groups/:id.json" namespacesPath: "/api/:version/namespaces.json" groupProjectsPath: "/api/:version/groups/:id/projects.json" - projectsPath: "/api/:version/projects.json" + projectsPath: "/api/:version/projects/simple.json" labelsPath: "/api/:version/projects/:id/labels" licensePath: "/api/:version/licenses/:key" gitignorePath: "/api/:version/gitignores/:key" diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index ed9dfcc917e..7c43e523572 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -122,6 +122,7 @@ class GitLabDropdownRemote # Fetch the data by calling the data funcfion @dataEndpoint "", (data) => + console.log(data) if @options.success @options.success(data) |