diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-07 11:55:31 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-12 16:36:42 +0100 |
commit | 331f026acb3515ab64e4e7ec75ea16473b98fc2f (patch) | |
tree | fc9c0f90557ff86bd4b293e285ced1eded923f22 /app | |
parent | a8cf4e13b33da8d71e16874ebf3dce9ca9d40b76 (diff) | |
download | gitlab-ce-331f026acb3515ab64e4e7ec75ea16473b98fc2f.tar.gz |
gets the new object through /simple endpoint and renders on the dropdown
Diffstat (limited to 'app')
-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 1c65e833d47..e226943a4c1 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -123,6 +123,7 @@ class GitLabDropdownRemote # Fetch the data by calling the data funcfion @dataEndpoint "", (data) => + console.log(data) if @options.success @options.success(data) |