summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-22 03:44:49 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-22 03:44:49 -0500
commit97b39ae2e4acc3cbdef0dbfb110d6eebf2c1977b (patch)
treee2a93d09a9225cd3fced21307a6371185b711337 /public
parent030b3d751e3fc55429ed4cbab76d85d610688d0c (diff)
downloadgitea-97b39ae2e4acc3cbdef0dbfb110d6eebf2c1977b.tar.gz
gitea-97b39ae2e4acc3cbdef0dbfb110d6eebf2c1977b.zip
fix invite bug(shouldn't include full name to search box)
Diffstat (limited to 'public')
-rw-r--r--public/ng/js/gogs.js4
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();
});
}