diff --git a/module/gitlab/js/binduser.js b/module/gitlab/js/binduser.js index a4b6cc07c2..014d06eeb1 100644 --- a/module/gitlab/js/binduser.js +++ b/module/gitlab/js/binduser.js @@ -8,4 +8,17 @@ $(document).ready(function() $(this).parent().parent().find('.email').text(user.email) } }); -}); \ No newline at end of file + + $(document).on('click', '.zentao-users .chosen-container', function() + { + var $obj = $(this).prev('select'); + var value = $obj.val(); + if($obj.hasClass('filled')) return false; + + $obj.empty(); + $obj.append($('#userList').html()); + $obj.val(value); + $obj.addClass('filled'); + $obj.trigger("chosen:updated"); + }) +});