diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 11:32:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 11:32:25 -0400 |
commit | 0a187dbef5d2480f8d47b8013f6e21e06ea18cbd (patch) | |
tree | e6fc8d15f0a0fe2e8a0efe06ce3bc39e31b6d87f | |
parent | f6c4fbeb37bc7fcbc947c162358c39e9bed90488 (diff) | |
parent | ad71775ae8d38bb7eb289a647e813ddcf1116cfc (diff) | |
download | gitea-0a187dbef5d2480f8d47b8013f6e21e06ea18cbd.tar.gz gitea-0a187dbef5d2480f8d47b8013f6e21e06ea18cbd.zip |
Merge branch 'dev' of github.com:gogits/gogs into dev
-rw-r--r-- | public/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js index 7d70b7fece..59fffd36d0 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -597,7 +597,7 @@ function initRepoSetting() { url: '/api/v1/users/search?q=' + $this.val(), dataType: "json", success: function (json) { - if (json.ok && json.data) { + if (json.ok && json.data.length) { var html = ''; $.each(json.data, function (i, item) { html += '<li><img src="' + item.avatar + '">' + item.username + '</li>'; |