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
Tatuya Kamada
gitlab-ce
Commits
896b9c1d
Commit
896b9c1d
authored
Jul 19, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with filtering & pressing enter key
parent
5d7b2bd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+2
-4
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
896b9c1d
...
@@ -311,6 +311,7 @@ class GitLabDropdown
...
@@ -311,6 +311,7 @@ class GitLabDropdown
return
true
return
true
opened
:
=>
opened
:
=>
currentIndex
=
-
1
@
addArrowKeyEvent
()
@
addArrowKeyEvent
()
if
@
options
.
setIndeterminateIds
if
@
options
.
setIndeterminateIds
...
@@ -568,9 +569,6 @@ class GitLabDropdown
...
@@ -568,9 +569,6 @@ class GitLabDropdown
PREV_INDEX
=
currentIndex
PREV_INDEX
=
currentIndex
$listItems
=
$
(
selector
,
@
dropdown
)
$listItems
=
$
(
selector
,
@
dropdown
)
# if @options.filterable
# $input.blur()
if
currentKeyCode
is
40
if
currentKeyCode
is
40
# Move down
# Move down
currentIndex
+=
1
if
currentIndex
<
(
$listItems
.
length
-
1
)
currentIndex
+=
1
if
currentIndex
<
(
$listItems
.
length
-
1
)
...
@@ -583,7 +581,7 @@ class GitLabDropdown
...
@@ -583,7 +581,7 @@ class GitLabDropdown
return
false
return
false
if
currentKeyCode
is
13
and
currentIndex
isnt
-
1
if
currentKeyCode
is
13
and
currentIndex
isnt
-
1
@
selectRowAtIndex
e
,
currentIndex
@
selectRowAtIndex
e
,
$
(
'.is-focused'
,
@
dropdown
).
closest
(
'li'
).
index
()
-
1
removeArrayKeyEvent
:
->
removeArrayKeyEvent
:
->
$
(
'body'
).
off
'keydown'
$
(
'body'
).
off
'keydown'
...
...
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