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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ea711454
Commit
ea711454
authored
Apr 18, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with multi select not working with arrow keys
parent
4d5d6194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+2
-8
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
ea711454
...
@@ -32,10 +32,8 @@ class GitLabDropdownFilter
...
@@ -32,10 +32,8 @@ class GitLabDropdownFilter
else
if
@
input
.
val
()
is
""
and
$inputContainer
.
hasClass
HAS_VALUE_CLASS
else
if
@
input
.
val
()
is
""
and
$inputContainer
.
hasClass
HAS_VALUE_CLASS
$inputContainer
.
removeClass
HAS_VALUE_CLASS
$inputContainer
.
removeClass
HAS_VALUE_CLASS
if
keyCode
is
13
and
@
input
.
val
()
isnt
""
if
keyCode
is
13
if
@
options
.
enterCallback
return
false
@
options
.
enterCallback
()
return
clearTimeout
timeout
clearTimeout
timeout
timeout
=
setTimeout
=>
timeout
=
setTimeout
=>
...
@@ -132,7 +130,6 @@ class GitLabDropdown
...
@@ -132,7 +130,6 @@ class GitLabDropdown
@
filterInput
=
@
getElement
(
FILTER_INPUT
)
@
filterInput
=
@
getElement
(
FILTER_INPUT
)
@
highlight
=
false
@
highlight
=
false
@
filterInputBlur
=
true
@
filterInputBlur
=
true
@
enterCallback
=
true
}
=
@
options
}
=
@
options
self
=
@
self
=
@
...
@@ -178,9 +175,6 @@ class GitLabDropdown
...
@@ -178,9 +175,6 @@ class GitLabDropdown
callback
:
(
data
)
=>
callback
:
(
data
)
=>
currentIndex
=
-
1
currentIndex
=
-
1
@
parseData
data
@
parseData
data
enterCallback
:
=>
if
@
enterCallback
@
selectRowAtIndex
0
# Event listeners
# Event listeners
...
...
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