diff options
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 53948578b9..e88dadc2e0 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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() { |