Commit 00ed5aaf authored by Clement Ho's avatar Clement Ho

Make keep typing dropdown item static

parent 5cd90ef9
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
((global) => { ((global) => {
const dropdownData = [{ const dropdownData = [{
icon: 'fa-search',
hint: 'Keep typing and press Enter',
tag: '',
},{
icon: 'fa-pencil', icon: 'fa-pencil',
hint: 'author:', hint: 'author:',
tag: '<author>' tag: '<author>'
......
...@@ -16,14 +16,21 @@ ...@@ -16,14 +16,21 @@
= icon('filter') = icon('filter')
%button.clear-search.hidden{ type: 'button' } %button.clear-search.hidden{ type: 'button' }
= icon('times') = icon('times')
%ul#js-dropdown-hint.dropdown-menu.hint-dropdown{ 'data-dynamic' => true } #js-dropdown-hint.dropdown-menu.hint-dropdown
%li.filter-dropdown-item %ul
%button.btn.btn-link %li.filter-dropdown-item{ 'data-value': 'none' }
%i.fa{ 'class': '{{icon}}'} %button.btn.btn-link
%span.js-filter-hint = icon('search')
{{hint}} %span
%span.js-filter-tag.dropdown-light-content Keep typing and press Enter
{{tag}} %ul.filter-dropdown{ 'data-dynamic' => true }
%li.filter-dropdown-item
%button.btn.btn-link
%i.fa{ 'class': '{{icon}}'}
%span.js-filter-hint
{{hint}}
%span.js-filter-tag.dropdown-light-content
{{tag}}
#js-dropdown-author.dropdown-menu{ 'data-dropdown' => true } #js-dropdown-author.dropdown-menu{ 'data-dropdown' => true }
%ul.filter-dropdown{ 'data-dynamic' => true } %ul.filter-dropdown{ 'data-dynamic' => true }
%li.filter-dropdown-item %li.filter-dropdown-item
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment