From e0ea16f05d5cb697c0eb0bf6f6a13e24f694aa38 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 9 Dec 2021 17:06:54 +0100 Subject: [PATCH] DEV: removes jquery usage from admin-watched-words (#15246) --- .../admin/addon/controllers/admin-watched-words.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/addon/controllers/admin-watched-words.js b/app/assets/javascripts/admin/addon/controllers/admin-watched-words.js index 1830e4c742d..e6966d558c9 100644 --- a/app/assets/javascripts/admin/addon/controllers/admin-watched-words.js +++ b/app/assets/javascripts/admin/addon/controllers/admin-watched-words.js @@ -50,6 +50,9 @@ export default Controller.extend({ @action toggleMenu() { - $(".admin-detail").toggleClass("mobile-closed mobile-open"); + const adminDetail = document.querySelector(".admin-detail"); + ["mobile-closed", "mobile-open"].forEach((state) => { + adminDetail.classList.toggle(state); + }); }, });