From 97b39ae2e4acc3cbdef0dbfb110d6eebf2c1977b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 22 Dec 2014 03:44:49 -0500 Subject: fix invite bug(shouldn't include full name to search box) --- public/ng/js/gogs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/ng/js/gogs.js') diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index ee14fb40..ff38bda9 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 += '
  • ' + item.username; + html += '
  • ' + item.username + ''; 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(); }); } -- cgit v1.2.3