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
Jérome Perrin
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 @@
...
@@ -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>'
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
00ed5aaf
...
@@ -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
...
...
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