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
b2b3fb6c
Commit
b2b3fb6c
authored
Jun 09, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert change to search all users
parent
e0f3e44b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+4
-4
No files found.
app/assets/javascripts/users_select.js.coffee
View file @
b2b3fb6c
...
@@ -95,7 +95,7 @@ class @UsersSelect
...
@@ -95,7 +95,7 @@ class @UsersSelect
data
:
(
term
,
callback
)
=>
data
:
(
term
,
callback
)
=>
isAuthorFilter
=
$
(
'.js-author-search'
)
isAuthorFilter
=
$
(
'.js-author-search'
)
@
users
term
,
term
is
''
and
isAuthorFilter
,
(
users
)
=>
@
users
term
,
(
users
)
=>
if
term
.
length
is
0
if
term
.
length
is
0
showDivider
=
0
showDivider
=
0
...
@@ -221,7 +221,7 @@ class @UsersSelect
...
@@ -221,7 +221,7 @@ class @UsersSelect
multiple
:
$
(
select
).
hasClass
(
'multiselect'
)
multiple
:
$
(
select
).
hasClass
(
'multiselect'
)
minimumInputLength
:
0
minimumInputLength
:
0
query
:
(
query
)
=>
query
:
(
query
)
=>
@
users
query
.
term
,
@
projectId
?
,
(
users
)
=>
@
users
query
.
term
,
(
users
)
=>
data
=
{
results
:
users
}
data
=
{
results
:
users
}
if
query
.
term
.
length
==
0
if
query
.
term
.
length
==
0
...
@@ -304,7 +304,7 @@ class @UsersSelect
...
@@ -304,7 +304,7 @@ class @UsersSelect
# Return users list. Filtered by query
# Return users list. Filtered by query
# Only active users retrieved
# Only active users retrieved
users
:
(
query
,
fromProject
,
callback
)
=>
users
:
(
query
,
callback
)
=>
url
=
@
buildUrl
(
@
usersPath
)
url
=
@
buildUrl
(
@
usersPath
)
$
.
ajax
(
$
.
ajax
(
...
@@ -313,7 +313,7 @@ class @UsersSelect
...
@@ -313,7 +313,7 @@ class @UsersSelect
search
:
query
search
:
query
per_page
:
20
per_page
:
20
active
:
true
active
:
true
project_id
:
@
projectId
if
fromProject
project_id
:
@
projectId
group_id
:
@
groupId
group_id
:
@
groupId
current_user
:
@
showCurrentUser
current_user
:
@
showCurrentUser
author_id
:
@
authorId
author_id
:
@
authorId
...
...
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