|
|
@ -1052,22 +1052,6 @@ function initRepoSetting() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Gogits.getUsers($this.val(), $this.next());
|
|
|
|
Gogits.getUsers($this.val(), $this.next());
|
|
|
|
/*$.ajax({
|
|
|
|
|
|
|
|
url: '/api/v1/users/search?q=' + $this.val(),
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
|
|
success: function (json) {
|
|
|
|
|
|
|
|
if (json.ok && json.data.length) {
|
|
|
|
|
|
|
|
var html = '';
|
|
|
|
|
|
|
|
$.each(json.data, function (i, item) {
|
|
|
|
|
|
|
|
html += '<li><img src="' + item.avatar + '">' + item.username + '</li>';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$this.next().toggleShow();
|
|
|
|
|
|
|
|
$this.next().find('ul').html(html);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$this.next().toggleHide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});*/
|
|
|
|
|
|
|
|
}).on('focus', function () {
|
|
|
|
}).on('focus', function () {
|
|
|
|
if (!$(this).val()) {
|
|
|
|
if (!$(this).val()) {
|
|
|
|
$(this).next().toggleHide();
|
|
|
|
$(this).next().toggleHide();
|
|
|
|