summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-01 23:31:35 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-01 23:31:35 +0800
commitad71775ae8d38bb7eb289a647e813ddcf1116cfc (patch)
treec0b39d534a3cded44825b34c987e66e13d074c4a /public/js
parent0dfb5560cdee369b2292071d14d750b2477c6086 (diff)
downloadgitea-ad71775ae8d38bb7eb289a647e813ddcf1116cfc.tar.gz
gitea-ad71775ae8d38bb7eb289a647e813ddcf1116cfc.zip
fix collaboration js bug
Diffstat (limited to 'public/js')
-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>';