From 91f00ecf5a795ef36bc6bdd72678ed1e3310bed3 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Thu, 2 Jun 2022 16:01:07 -0500 Subject: [PATCH] DEV: Remove jquery from group list (#16981) --- .../discourse/app/controllers/group-index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/controllers/group-index.js b/app/assets/javascripts/discourse/app/controllers/group-index.js index 570a5558c6a..7e495191d28 100644 --- a/app/assets/javascripts/discourse/app/controllers/group-index.js +++ b/app/assets/javascripts/discourse/app/controllers/group-index.js @@ -216,12 +216,20 @@ export default Controller.extend({ @action bulkSelectAll() { - $("input.bulk-select:not(:checked)").click(); + document + .querySelectorAll("input.bulk-select:not(:checked)") + .forEach((checkbox) => { + checkbox.checked = true; + }); }, @action bulkClearAll() { - $("input.bulk-select:checked").click(); + document + .querySelectorAll("input.bulk-select:checked") + .forEach((checkbox) => { + checkbox.checked = false; + }); }, @action