mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-29 22:06:06 +02:00
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>
This commit is contained in:
parent
6138388ffa
commit
c8a52b949b
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue