From 9e40482ff646fc4f8f940a9ee732e802a70fa054 Mon Sep 17 00:00:00 2001 From: ouidade Date: Fri, 24 Nov 2023 10:28:16 +0100 Subject: [PATCH] =?UTF-8?q?js=20menu=20d=C3=A9roulant=20OK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/themes/custom/reha/js/reha.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/themes/custom/reha/js/reha.js b/web/themes/custom/reha/js/reha.js index 7e462a2..ea0ec51 100644 --- a/web/themes/custom/reha/js/reha.js +++ b/web/themes/custom/reha/js/reha.js @@ -23,6 +23,11 @@ jQuery(document).ready(function($){ $(document).ready(function() { $(".bouton-contact").click(function(event) { + // Fermer .connexion-full s'il est déroulé + if ($(".connexion-full").is(":visible")) { + $(".connexion-full").slideUp(); + } + // Ouvrir .field--type-text-long $(".field--type-text-long").slideToggle(); }); @@ -31,6 +36,11 @@ jQuery(document).ready(function($){ $(document).ready(function() { $(".bouton-connexion").click(function(event) { + // Fermer .field--type-text-long s'il est déroulé + if ($(".field--type-text-long").is(":visible")) { + $(".field--type-text-long").slideUp(); + } + // Ouvrir .connexion-full $(".connexion-full").slideToggle(); }); });