diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-14 16:14:29 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-15 13:34:33 -0500 |
commit | d38ef7b5b07890d02256bf05cf6b126fceee5770 (patch) | |
tree | 1d3f7f9981ee639c9f1796f9d5a53df5ede65cbb /app/views/layouts/_search.html.haml | |
parent | dce5e9ce4824b62ef939aa635357a813a858322e (diff) | |
download | gitlab-ce-d38ef7b5b07890d02256bf05cf6b126fceee5770.tar.gz |
Use new dropdown class for search suggestions
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r-- | app/views/layouts/_search.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml index a004908fb6f..f051e7a1867 100644 --- a/app/views/layouts/_search.html.haml +++ b/app/views/layouts/_search.html.haml @@ -4,7 +4,11 @@ .search-location-badge = render 'shared/location_badge' .search-input-wrap - = search_field_tag "search", nil, placeholder: 'Search', class: "search-input", spellcheck: false, tabindex: "1", autocomplete: 'off' + .dropdown{ data: {url: search_autocomplete_path } } + = search_field_tag "search", nil, placeholder: 'Search', class: "search-input dropdown-menu-toggle", spellcheck: false, tabindex: "1", autocomplete: 'off', data: { toggle: 'dropdown' } + .dropdown-menu.dropdown-select + = dropdown_content + = dropdown_loading %i.search-icon = hidden_field_tag :group_id, @group.try(:id) |