Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/define autochecked checkboxes on issue list in firefox #7320

Merged
merged 5 commits into from
Jul 12, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2106,13 +2106,25 @@ $(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
updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
let url = this.dataset.url;
updateIssuesMeta(url, action, issueIDs, elementId).then(function() {
if (action === "close" || action === "open" ){
//uncheck all checkboxes
$('.issue-checkbox input[type="checkbox"]').each(function(_,e){ e.checked = false; });
}
reload();
});
});

// trigger ckecked event, if checkboxes are checked on load
$('.issue-checkbox input[type="checkbox"]:checked').first().each(function(_,e) {
e.checked = false;
$(e).click();
});

buttonsClickOnEnter();
Expand Down