mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
add issue label attach-detach ui
This commit is contained in:
@ -650,6 +650,18 @@ function initIssue() {
|
||||
$(this).parent().remove();
|
||||
return false;
|
||||
});
|
||||
$('.issue-bar .labels .dropdown-menu').on('click', 'li', function (e) {
|
||||
var url = $('.issue-bar .labels').data("ajax");
|
||||
var id = $(this).data('id');
|
||||
var check = $(this).hasClass("checked");
|
||||
$.post(url, {id: id, action: check ? 'detach' : "attach"}, function (json) {
|
||||
if (json.ok) {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
})
|
||||
}
|
||||
|
||||
function initRelease() {
|
||||
|
Reference in New Issue
Block a user