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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
30eeb453
Commit
30eeb453
authored
Mar 23, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused instance variable
parent
c3773584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
app/assets/javascripts/search_autocomplete.js.coffee
app/assets/javascripts/search_autocomplete.js.coffee
+3
-14
No files found.
app/assets/javascripts/search_autocomplete.js.coffee
View file @
30eeb453
...
@@ -35,7 +35,6 @@ class @SearchAutocomplete
...
@@ -35,7 +35,6 @@ class @SearchAutocomplete
@
createAutocomplete
()
@
createAutocomplete
()
@
searchInput
.
addClass
(
'disabled'
)
@
searchInput
.
addClass
(
'disabled'
)
@
autocomplete
=
false
@
bindEvents
()
@
bindEvents
()
...
@@ -60,10 +59,6 @@ class @SearchAutocomplete
...
@@ -60,10 +59,6 @@ class @SearchAutocomplete
getData
:
(
term
,
callback
)
->
getData
:
(
term
,
callback
)
->
_this
=
@
_this
=
@
# Ensure this is not called when autocomplete is disabled because
# this method still will be called because `GitLabDropdownFilter` is triggering this on keyup
return
if
@
autocomplete
is
false
# Do not trigger request if input is empty
# Do not trigger request if input is empty
return
if
@
searchInput
.
val
()
is
''
return
if
@
searchInput
.
val
()
is
''
...
@@ -118,15 +113,12 @@ class @SearchAutocomplete
...
@@ -118,15 +113,12 @@ class @SearchAutocomplete
@
clearInput
.
on
'click'
,
@
onRemoveLocationClick
@
clearInput
.
on
'click'
,
@
onRemoveLocationClick
enableAutocomplete
:
->
enableAutocomplete
:
->
return
if
@
autocomplete
dropdownMenu
=
@
dropdown
.
find
(
'.dropdown-menu'
)
dropdownMenu
=
@
dropdown
.
find
(
'.dropdown-menu'
)
_this
=
@
_this
=
@
@
loadingSuggestions
=
false
@
loadingSuggestions
=
false
@
dropdown
.
addClass
(
'open'
)
@
dropdown
.
addClass
(
'open'
)
@
searchInput
.
removeClass
(
'disabled'
)
@
searchInput
.
removeClass
(
'disabled'
)
@
autocomplete
=
true
onDropdownOpen
:
(
e
)
=>
onDropdownOpen
:
(
e
)
=>
@
dropdown
.
dropdown
(
'toggle'
)
@
dropdown
.
dropdown
(
'toggle'
)
...
@@ -239,12 +231,9 @@ class @SearchAutocomplete
...
@@ -239,12 +231,9 @@ class @SearchAutocomplete
@
wrap
.
removeClass
(
'has-location-badge'
)
@
wrap
.
removeClass
(
'has-location-badge'
)
disableAutocomplete
:
->
disableAutocomplete
:
->
if
@
autocomplete
@
searchInput
.
addClass
(
'disabled'
)
@
searchInput
.
addClass
(
'disabled'
)
@
dropdown
.
removeClass
(
'open'
)
@
dropdown
.
removeClass
(
'open'
)
@
restoreMenu
()
@
restoreMenu
()
@
autocomplete
=
false
restoreMenu
:
->
restoreMenu
:
->
html
=
"<ul>
html
=
"<ul>
...
...
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