diff options
author | Sam Rose <sam@gitlab.com> | 2017-03-06 00:03:21 -0500 |
---|---|---|
committer | Sam Rose <sam@gitlab.com> | 2017-03-14 06:58:20 -0400 |
commit | 435458d2b14eadd1768b7b0a14f5966633f02f83 (patch) | |
tree | ebbd64338beb819fdaf8fc4b320d5c3a848982b2 /app/assets/javascripts/search.js | |
parent | b3eda944454cb180cdefb8ddff35fdeb729e3ed5 (diff) | |
download | gitlab-ce-435458d2b14eadd1768b7b0a14f5966633f02f83.tar.gz |
Update API on frontend to use v428864-use-the-v4-api-from-the-frontend
Use options object to pass params for project endpoint
Diffstat (limited to 'app/assets/javascripts/search.js')
-rw-r--r-- | app/assets/javascripts/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/search.js b/app/assets/javascripts/search.js index e66418beeab..15f5963353a 100644 --- a/app/assets/javascripts/search.js +++ b/app/assets/javascripts/search.js @@ -47,7 +47,7 @@ fields: ['name'] }, data: function(term, callback) { - return Api.projects(term, 'id', function(data) { + return Api.projects(term, { order_by: 'id' }, function(data) { data.unshift({ name_with_namespace: 'Any' }); |