aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js
index ef8a1093ad..b4ce8c78b6 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2137,12 +2137,16 @@ $(document).ready(function () {
});
$('.issue-action').click(function () {
- var action = this.dataset.action
- var elementId = this.dataset.elementId
- var issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
+ let action = this.dataset.action;
+ let elementId = this.dataset.elementId;
+ let issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
return this.dataset.issueId;
}).get().join();
- var url = this.dataset.url
+ let url = this.dataset.url;
+ if (elementId === '0' && url.substr(-9) === '/assignee'){
+ elementId = '';
+ action = 'clear';
+ }
updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
});