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
62b260cc
Commit
62b260cc
authored
Mar 23, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change key name to match input Id
Fixes input not being restored with its original value
parent
8c1d50e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/assets/javascripts/search_autocomplete.js.coffee
app/assets/javascripts/search_autocomplete.js.coffee
+2
-4
No files found.
app/assets/javascripts/search_autocomplete.js.coffee
View file @
62b260cc
...
@@ -70,6 +70,7 @@ class @SearchAutocomplete
...
@@ -70,6 +70,7 @@ class @SearchAutocomplete
# Prevent multiple ajax calls
# Prevent multiple ajax calls
return
if
@
loadingSuggestions
return
if
@
loadingSuggestions
# Do not request suggestions if dropdown is disabled
return
if
@
badgePresent
()
return
if
@
badgePresent
()
@
loadingSuggestions
=
true
@
loadingSuggestions
=
true
...
@@ -102,7 +103,7 @@ class @SearchAutocomplete
...
@@ -102,7 +103,7 @@ class @SearchAutocomplete
serializeState
:
->
serializeState
:
->
{
{
# Search Criteria
# Search Criteria
project_id
:
@
projectInputEl
.
val
()
search_
project_id
:
@
projectInputEl
.
val
()
group_id
:
@
groupInputEl
.
val
()
group_id
:
@
groupInputEl
.
val
()
search_code
:
@
searchCodeInputEl
.
val
()
search_code
:
@
searchCodeInputEl
.
val
()
repository_ref
:
@
repositoryInputEl
.
val
()
repository_ref
:
@
repositoryInputEl
.
val
()
...
@@ -232,9 +233,6 @@ class @SearchAutocomplete
...
@@ -232,9 +233,6 @@ class @SearchAutocomplete
# _location isnt a input
# _location isnt a input
break
if
input
is
'_location'
break
if
input
is
'_location'
# renamed to avoid tests to fail
if
input
is
'project_id'
then
input
=
'search_project_id'
@
getElement
(
"#
#{
input
}
"
).
val
(
''
)
@
getElement
(
"#
#{
input
}
"
).
val
(
''
)
removeLocationBadge
:
->
removeLocationBadge
:
->
...
...
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