diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-09 10:44:17 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-09 17:13:51 +0100 |
commit | d301791c2aa101b68f9b5abda24f20dc24a85830 (patch) | |
tree | 3f130afa40d35140d6e9f41c5e4ba35415c27b53 /app | |
parent | e796555bdb9884a34a5dcef595815594484aac41 (diff) | |
download | gitlab-ce-d301791c2aa101b68f9b5abda24f20dc24a85830.tar.gz |
Added testslabel-filter-fix
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/dropdowns_helper.rb | 4 | ||||
-rw-r--r-- | app/views/shared/issuable/_label_page_default.html.haml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/dropdowns_helper.rb b/app/helpers/dropdowns_helper.rb index 14697f774cc..6b617e1730a 100644 --- a/app/helpers/dropdowns_helper.rb +++ b/app/helpers/dropdowns_helper.rb @@ -67,9 +67,9 @@ module DropdownsHelper end end - def dropdown_filter(placeholder) + def dropdown_filter(placeholder, search_id: nil) content_tag :div, class: "dropdown-input" do - filter_output = search_field_tag nil, nil, class: "dropdown-input-field", placeholder: placeholder + filter_output = search_field_tag search_id, nil, class: "dropdown-input-field", placeholder: placeholder filter_output << icon('search', class: "dropdown-input-search") filter_output << icon('times', class: "dropdown-input-clear js-dropdown-input-clear", role: "button") diff --git a/app/views/shared/issuable/_label_page_default.html.haml b/app/views/shared/issuable/_label_page_default.html.haml index 4e280c371ac..0acb8253139 100644 --- a/app/views/shared/issuable/_label_page_default.html.haml +++ b/app/views/shared/issuable/_label_page_default.html.haml @@ -4,7 +4,7 @@ - filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels') .dropdown-page-one = dropdown_title(title) - = dropdown_filter(filter_placeholder) + = dropdown_filter(filter_placeholder, search_id: "label-name") = dropdown_content - if @project && show_footer = dropdown_footer do |