public/ng: fix auto-completion #832
This commit is contained in:
parent
faddaff90d
commit
3d9cda2d98
2
gogs.go
2
gogs.go
|
@ -17,7 +17,7 @@ import (
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.5.12.0131 Beta"
|
const APP_VER = "0.5.12.0201 Beta"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -608,7 +608,7 @@ function initTeamMembersList() {
|
||||||
$ul.toggleShow();
|
$ul.toggleShow();
|
||||||
}
|
}
|
||||||
}).next().next().find('ul').on("click", 'li', function () {
|
}).next().next().find('ul').on("click", 'li', function () {
|
||||||
$('#org-team-members-add').val($(this).text());
|
$('#org-team-members-add').val($(this).find('.username').text());
|
||||||
$ul.toggleHide();
|
$ul.toggleHide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.5.12.0131 Beta
|
0.5.12.0201 Beta
|
Loading…
Reference in a new issue