summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-10 17:40:38 +0000
committerPhil Hughes <me@iamphill.com>2017-03-16 08:42:41 +0000
commit09f7b9dc3260d9fa65b5aeec4576b6159cfb93b2 (patch)
tree4d97d4714b2c1beb17d3e54c1628dd5fdf4f12d4 /app/views
parenta9deabea00a1fa34bfeb8b6c421a99aa7568a5c8 (diff)
downloadgitlab-ce-09f7b9dc3260d9fa65b5aeec4576b6159cfb93b2.tar.gz
Created a container class for filtered search
This class returns the correct container the filtered search should be run in At the moment it doesn't allow for multiple to be used at once, need to look at a way to fix this [ci skip]
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/issuable/_search_bar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml
index 0ef0da61f13..b58640c3ef0 100644
--- a/app/views/shared/issuable/_search_bar.html.haml
+++ b/app/views/shared/issuable/_search_bar.html.haml
@@ -15,7 +15,7 @@
.scroll-container
%ul.tokens-container.list-unstyled
%li.input-token
- %input.form-control.filtered-search{ placeholder: 'Search or filter results...', data: { id: 'filtered-search', 'project-id' => @project.id, 'username-params' => @users.to_json(only: [:id, :username]), 'base-endpoint' => namespace_project_path(@project.namespace, @project) } }
+ %input.form-control.filtered-search{ placeholder: 'Search or filter results...', data: { id: "filtered-search-#{type.to_s}", 'project-id' => @project.id, 'username-params' => @users.to_json(only: [:id, :username]), 'base-endpoint' => namespace_project_path(@project.namespace, @project) } }
= icon('filter')
%button.clear-search.hidden{ type: 'button' }
= icon('times')