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
iv
gitlab-ce
Commits
be045553
Commit
be045553
authored
Nov 20, 2015
by
Jose Corcuera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Assignee selector when 'Unassigned' #2831
parent
94b90db5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+10
-5
No files found.
CHANGELOG
View file @
be045553
Please view this file on the master branch, on stable branches it's out of date.
v 8.3.0 (unreleased)
- Fix: Assignee selector is empty when 'Unassigned' is selected (Jose Corcuera)
v 8.2.0
- Improved performance of finding projects and groups in various places
...
...
app/assets/javascripts/users_select.js.coffee
View file @
be045553
...
...
@@ -58,11 +58,8 @@ class @UsersSelect
query
.
callback
(
data
)
initSelection
:
(
element
,
callback
)
=>
id
=
$
(
element
).
val
()
if
id
!=
""
&&
id
!=
"0"
@
user
(
id
,
callback
)
initSelection
:
(
args
...)
=>
@
initSelection
(
args
...)
formatResult
:
(
args
...)
=>
@
formatResult
(
args
...)
formatSelection
:
(
args
...)
=>
...
...
@@ -71,6 +68,14 @@ class @UsersSelect
escapeMarkup
:
(
m
)
->
# we do not want to escape markup since we are displaying html in results
m
initSelection
:
(
element
,
callback
)
->
id
=
$
(
element
).
val
()
if
id
==
"0"
nullUser
=
{
name
:
'Unassigned'
}
callback
(
nullUser
)
else
if
id
!=
""
@
user
(
id
,
callback
)
formatResult
:
(
user
)
->
if
user
.
avatar_url
avatar
=
user
.
avatar_url
...
...
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