Browse Source

fix collaboration js bug

pull/160/head
FuXiaoHei 11 years ago
parent
commit
ad71775ae8
  1. 2
      public/js/app.js

2
public/js/app.js

@ -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…
Cancel
Save