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
ef48dd01
Commit
ef48dd01
authored
8 years ago
by
Phil Hughes
Committed by
Jacob Schatz
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checks based on whether data is loaded not undefined
parent
4456b41b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/gfm_auto_complete.js.coffee
app/assets/javascripts/gfm_auto_complete.js.coffee
+4
-1
No files found.
app/assets/javascripts/gfm_auto_complete.js.coffee
View file @
ef48dd01
...
...
@@ -3,6 +3,7 @@
window
.
GitLab
?=
{}
GitLab
.
GfmAutoComplete
=
dataLoading
:
false
dataLoaded
:
false
dataSource
:
''
...
...
@@ -35,7 +36,7 @@ GitLab.GfmAutoComplete =
$
.
fn
.
atwho
.
default
.
callbacks
.
filter
(
query
,
data
,
searchKey
)
beforeInsert
:
(
value
)
->
if
value
.
indexOf
(
'undefined'
)
is
1
if
not
GitLab
.
GfmAutoComplete
.
dataLoaded
@
at
else
value
...
...
@@ -182,6 +183,8 @@ GitLab.GfmAutoComplete =
$
.
getJSON
(
dataSource
)
loadData
:
(
data
)
->
@
dataLoaded
=
true
# load members
@
input
.
atwho
'load'
,
'@'
,
data
.
members
# load issues
...
...
This diff is collapsed.
Click to expand it.
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