Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
00ed5aaf
Commit
00ed5aaf
authored
Dec 06, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make keep typing dropdown item static
parent
5cd90ef9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
+0
-4
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+15
-8
No files found.
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
View file @
00ed5aaf
...
...
@@ -3,10 +3,6 @@
((global) => {
const dropdownData = [{
icon: 'fa-search',
hint: 'Keep typing and press Enter',
tag: '',
},{
icon: 'fa-pencil',
hint: 'author:',
tag: '<author>'
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
00ed5aaf
...
...
@@ -16,14 +16,21 @@
=
icon
(
'filter'
)
%button
.clear-search.hidden
{
type:
'button'
}
=
icon
(
'times'
)
%ul
#js-dropdown-hint
.dropdown-menu.hint-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-hint
.dropdown-menu.hint-dropdown
%ul
%li
.filter-dropdown-item
{
'data-value'
:
'none'
}
%button
.btn.btn-link
=
icon
(
'search'
)
%span
Keep typing and press Enter
%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
}
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
}
%li
.filter-dropdown-item
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment