From dafa58cdfd706cba19a5115fa14bb34b460a53c1 Mon Sep 17 00:00:00 2001 From: nicod_ <nicod@lerebooteux.fr> Date: Fri, 10 Nov 2023 17:40:56 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Masquer=20visuellement=20le=20bouton=20"?= =?UTF-8?q?Ajouter=20un=20bloc"=20une=20fois=20qu'on=20a=20cliqu=C3=A9=20d?= =?UTF-8?q?essus,=20le=20r=C3=A9afficher=20si=20on=20clique=20sur=20"Annul?= =?UTF-8?q?er"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #10 --- javascript/gestion_listes_blocks.js.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/javascript/gestion_listes_blocks.js.html b/javascript/gestion_listes_blocks.js.html index bed53d9..e5f3e3e 100644 --- a/javascript/gestion_listes_blocks.js.html +++ b/javascript/gestion_listes_blocks.js.html @@ -116,9 +116,11 @@ function gestion_accordeons_blocks() { const panel = $('#' + controlsId); if(panel.length) { if(panel.is(':visible')) { + $(this).parent('.toggle_form').removeClass('visually-hidden'); $(this).attr('aria-expanded', false); panel.attr('hidden', true); } else { + $(this).parent('.toggle_form').addClass('visually-hidden'); $(this).attr('aria-expanded', true); panel.removeAttr('hidden'); } -- GitLab