summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-01 11:32:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-01 11:32:25 -0400
commit0a187dbef5d2480f8d47b8013f6e21e06ea18cbd (patch)
treee6fc8d15f0a0fe2e8a0efe06ce3bc39e31b6d87f
parentf6c4fbeb37bc7fcbc947c162358c39e9bed90488 (diff)
parentad71775ae8d38bb7eb289a647e813ddcf1116cfc (diff)
downloadgitea-0a187dbef5d2480f8d47b8013f6e21e06ea18cbd.tar.gz
gitea-0a187dbef5d2480f8d47b8013f6e21e06ea18cbd.zip
Merge branch 'dev' of github.com:gogits/gogs into dev
-rw-r--r--public/js/app.js2
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>';