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
iv
gitlab-ce
Commits
187f1c41
Commit
187f1c41
authored
Mar 23, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add param to skip enterCallback
parent
d7350dea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+3
-1
app/assets/javascripts/search_autocomplete.js.coffee
app/assets/javascripts/search_autocomplete.js.coffee
+1
-0
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
187f1c41
...
@@ -108,6 +108,7 @@ class GitLabDropdown
...
@@ -108,6 +108,7 @@ class GitLabDropdown
@
filterInput
=
@
getElement
(
FILTER_INPUT
)
@
filterInput
=
@
getElement
(
FILTER_INPUT
)
@
highlight
=
false
@
highlight
=
false
@
filterInputBlur
=
true
@
filterInputBlur
=
true
@
enterCallback
=
true
}
=
@
options
}
=
@
options
self
=
@
self
=
@
...
@@ -147,7 +148,8 @@ class GitLabDropdown
...
@@ -147,7 +148,8 @@ class GitLabDropdown
@
parseData
data
@
parseData
data
@
highlightRow
1
@
highlightRow
1
enterCallback
:
=>
enterCallback
:
=>
@
selectFirstRow
()
if
@
enterCallback
@
selectFirstRow
()
# Event listeners
# Event listeners
@
dropdown
.
on
"shown.bs.dropdown"
,
@
opened
@
dropdown
.
on
"shown.bs.dropdown"
,
@
opened
...
...
app/assets/javascripts/search_autocomplete.js.coffee
View file @
187f1c41
...
@@ -56,6 +56,7 @@ class @SearchAutocomplete
...
@@ -56,6 +56,7 @@ class @SearchAutocomplete
filterable
:
true
filterable
:
true
filterRemote
:
true
filterRemote
:
true
highlight
:
true
highlight
:
true
enterCallback
:
false
filterInput
:
'input#search'
filterInput
:
'input#search'
search
:
search
:
fields
:
[
'text'
]
fields
:
[
'text'
]
...
...
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