summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorCherrg <michael@gnehr.de>2019-07-08 17:29:52 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-07-08 11:29:52 -0400
commitc8a52b949b722b1dc51e7cd1bbf84c081c57b0d2 (patch)
treee4762e17903d1142b1c731f0f240d3f41a8b1ce7 /public/js
parent6138388ffa2af6c2efa4d0a4f293aa661ca4bfa7 (diff)
downloadgitea-c8a52b949b722b1dc51e7cd1bbf84c081c57b0d2.tar.gz
gitea-c8a52b949b722b1dc51e7cd1bbf84c081c57b0d2.zip
fix post parameter - on issue list - unset assignee (#7380)
* fix post parameter - issue list - assignee fix #7328 - remove assignee on issue list return 500 Signed-off-by: Michael Gnehr <michael@gnehr.de> * add missing semicolons Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'public/js')
-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);
});