We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c3e46 commit 01f3f0fCopy full SHA for 01f3f0f
web_src/js/features/common-issue.js
@@ -14,12 +14,12 @@ export function initCommonIssue() {
14
}
15
};
16
17
- $('.issue-checkbox').on('click', checkboxOperate);
+ const checkboxpart = $('.issue-checkbox');
18
+ checkboxpart.on('click', checkboxOperate);
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);
+ const checkboxall = $('.issue-checkbox-all');
+ checkboxall.on('click', (e) => {
+ checkboxpart.find('input').prop('checked', checkboxall.find('input').prop('checked'));
23
checkboxOperate(e);
24
});
25
0 commit comments