Skip to content

Commit 01f3f0f

Browse files
committed
Remove invert selection func
1 parent 59c3e46 commit 01f3f0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web_src/js/features/common-issue.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export function initCommonIssue() {
1414
}
1515
};
1616

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

19-
$('.issue-checkbox-all').on('click', (e) => {
20-
const selected = $('.issue-checkbox input:checked');
21-
$('.issue-checkbox input:not(:checked)').prop('checked', 1);
22-
selected.prop('checked', 0);
20+
const checkboxall = $('.issue-checkbox-all');
21+
checkboxall.on('click', (e) => {
22+
checkboxpart.find('input').prop('checked', checkboxall.find('input').prop('checked'));
2323
checkboxOperate(e);
2424
});
2525

0 commit comments

Comments
 (0)