DEV: Remove JQuery from components/topic-list.js (#18048)

This commit is contained in:
David Taylor 2022-08-23 19:27:54 +01:00 committed by GitHub
parent e21d2ac217
commit 1b180a3bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,12 +176,16 @@ export default Component.extend(LoadMore, {
onClick("button.bulk-select-all", function () {
this.updateAutoAddTopicsToBulkSelect(true);
$("input.bulk-select:not(:checked)").click();
document
.querySelectorAll("input.bulk-select:not(:checked)")
.forEach((el) => el.click());
});
onClick("button.bulk-clear-all", function () {
this.updateAutoAddTopicsToBulkSelect(false);
$("input.bulk-select:checked").click();
document
.querySelectorAll("input.bulk-select:checked")
.forEach((el) => el.click());
});
onClick("th.sortable", function (element) {