diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-02-01 08:46:53 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-02-01 08:46:53 -0500 |
commit | 3d9cda2d98940102b1bdffc053e036cc696b9f8e (patch) | |
tree | cb8bf06d944fa37dd1b86f953cab5a942b5490f7 /public | |
parent | faddaff90d4710f763ccc76c467ba6ff04472c38 (diff) | |
download | gitea-3d9cda2d98940102b1bdffc053e036cc696b9f8e.tar.gz gitea-3d9cda2d98940102b1bdffc053e036cc696b9f8e.zip |
public/ng: fix auto-completion #832
Diffstat (limited to 'public')
-rw-r--r-- | public/js/app.js | 16 | ||||
-rw-r--r-- | public/ng/js/gogs.js | 2 |
2 files changed, 1 insertions, 17 deletions
diff --git a/public/js/app.js b/public/js/app.js index 23b629e3e1..61539148e9 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1052,22 +1052,6 @@ function initRepoSetting() { return; } Gogits.getUsers($this.val(), $this.next()); - /*$.ajax({ - url: '/api/v1/users/search?q=' + $this.val(), - dataType: "json", - success: function (json) { - if (json.ok && json.data.length) { - var html = ''; - $.each(json.data, function (i, item) { - html += '<li><img src="' + item.avatar + '">' + item.username + '</li>'; - }); - $this.next().toggleShow(); - $this.next().find('ul').html(html); - } else { - $this.next().toggleHide(); - } - } - });*/ }).on('focus', function () { if (!$(this).val()) { $(this).next().toggleHide(); diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index ff38bda9d6..f0bb76330d 100644 --- a/public/ng/js/gogs.js +++ b/public/ng/js/gogs.js @@ -608,7 +608,7 @@ function initTeamMembersList() { $ul.toggleShow(); } }).next().next().find('ul').on("click", 'li', function () { - $('#org-team-members-add').val($(this).text()); + $('#org-team-members-add').val($(this).find('.username').text()); $ul.toggleHide(); }); } |