mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 01:32:42 +01:00
Merge branch 'dev' of github.com:gogits/gogs into dev
This commit is contained in:
commit
0a187dbef5
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ function initRepoSetting() {
|
||||||
url: '/api/v1/users/search?q=' + $this.val(),
|
url: '/api/v1/users/search?q=' + $this.val(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.ok && json.data) {
|
if (json.ok && json.data.length) {
|
||||||
var html = '';
|
var html = '';
|
||||||
$.each(json.data, function (i, item) {
|
$.each(json.data, function (i, item) {
|
||||||
html += '<li><img src="' + item.avatar + '">' + item.username + '</li>';
|
html += '<li><img src="' + item.avatar + '">' + item.username + '</li>';
|
||||||
|
|
Loading…
Reference in a new issue