diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/ng/js/gogs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index ee14fb401f..ff38bda9d6 100644 --- a/public/ng/js/gogs.js +++ b/public/ng/js/gogs.js @@ -214,7 +214,7 @@ var Gogs = {}; if (json.ok && json.data.length) { var html = ''; $.each(json.data, function (i, item) { - html += '<li><a><img src="' + item.avatar_url + '">' + item.username; + html += '<li><a><img src="' + item.avatar_url + '"><span class="username">' + item.username + '</span>'; if (notEmpty(item.full_name)) { html += ' (' + item.full_name + ')'; } @@ -571,7 +571,7 @@ function initInvite() { $ul.toggleShow(); } }).next().next().find('ul').on("click", 'li', function () { - $('#org-member-invite').val($(this).text()); + $('#org-member-invite').val($(this).find('.username').text()); $ul.toggleHide(); }); } |