diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-24 18:52:02 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-24 18:52:02 +0300 |
commit | 515e9d51df5a890887248e74b7a96d47a5d0722c (patch) | |
tree | 7e53ad46d17204fdfc7e3822f74667b46887d506 /app/assets | |
parent | 2953e0d19b46a937ee9d84139adbc263c8e89757 (diff) |
Make sure issue assignee is properly reset.
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/project_users_select.js.coffee | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/project_users_select.js.coffee b/app/assets/javascripts/project_users_select.js.coffee index e22c7c11f1c..80ab1a61ab9 100644 --- a/app/assets/javascripts/project_users_select.js.coffee +++ b/app/assets/javascripts/project_users_select.js.coffee @@ -25,7 +25,7 @@ class @ProjectUsersSelect initSelection: (element, callback) -> id = $(element).val() - if id isnt "" + if id != "" && id != "-1" Api.user(id, callback) @@ -44,10 +44,7 @@ class @ProjectUsersSelect else avatar = gon.default_avatar_url - if user.id == '' - avatarMarkup = '' - else - avatarMarkup = "<div class='user-image'><img class='avatar s24' src='#{avatar}'></div>" + avatarMarkup = "<div class='user-image'><img class='avatar s24' src='#{avatar}'></div>" "<div class='user-result'> #{avatarMarkup} |