summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/search.js
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-01-26 21:31:32 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-01-30 17:33:48 +0200
commit15ad1d881582cc20145f5d0be69de84606576260 (patch)
tree29f2389bc25e3dbc3498e303c9f032f465d66578 /app/assets/javascripts/search.js
parent4468104f3550456481b45d1b09202ed6732a1810 (diff)
downloadgitlab-ce-15ad1d881582cc20145f5d0be69de84606576260.tar.gz
Use full group name/path in UI dropdowns
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/assets/javascripts/search.js')
-rw-r--r--app/assets/javascripts/search.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/search.js b/app/assets/javascripts/search.js
index 489e567259c..b1c0dc37b4d 100644
--- a/app/assets/javascripts/search.js
+++ b/app/assets/javascripts/search.js
@@ -13,12 +13,12 @@
filterable: true,
fieldName: 'group_id',
search: {
- fields: ['name']
+ fields: ['full_name']
},
data: function(term, callback) {
return Api.groups(term, {}, function(data) {
data.unshift({
- name: 'Any'
+ full_name: 'Any'
});
data.splice(1, 0, 'divider');
return callback(data);
@@ -28,10 +28,10 @@
return obj.id;
},
text: function(obj) {
- return obj.name;
+ return obj.full_name;
},
toggleLabel: function(obj) {
- return ($groupDropdown.data('default-label')) + " " + obj.name;
+ return ($groupDropdown.data('default-label')) + " " + obj.full_name;
},
clicked: (function(_this) {
return function() {