Skip to content

Commit

Permalink
Remove invert selection func
Browse files Browse the repository at this point in the history
  • Loading branch information
tyroneyeh committed Jul 28, 2022
1 parent 59c3e46 commit 01f3f0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web_src/js/features/common-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export function initCommonIssue() {
}
};

$('.issue-checkbox').on('click', checkboxOperate);
const checkboxpart = $('.issue-checkbox');
checkboxpart.on('click', checkboxOperate);

$('.issue-checkbox-all').on('click', (e) => {
const selected = $('.issue-checkbox input:checked');
$('.issue-checkbox input:not(:checked)').prop('checked', 1);
selected.prop('checked', 0);
const checkboxall = $('.issue-checkbox-all');
checkboxall.on('click', (e) => {
checkboxpart.find('input').prop('checked', checkboxall.find('input').prop('checked'));
checkboxOperate(e);
});

Expand Down

0 comments on commit 01f3f0f

Please sign in to comment.