From 5d95abdcf08c01e875dfa16a8e5359eea7ba2222 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Mon, 20 Feb 2023 17:06:13 +0100 Subject: [PATCH] Suppression animation navstyle --- core/module/theme/view/menu/menu.js.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/module/theme/view/menu/menu.js.php b/core/module/theme/view/menu/menu.js.php index f0b4b01..dafe2e3 100644 --- a/core/module/theme/view/menu/menu.js.php +++ b/core/module/theme/view/menu/menu.js.php @@ -129,21 +129,6 @@ $("input, select").on("change", function() { $("#menu").addClass("container"); } - // Largeur du menu étendue à la page pour top sinon limitée au site - if ($("#themeMenuPosition").val() === 'top') { - $("nav").removeAttr('style'); - } else { - var menuWidth = document.body.clientWidth + 20; - if( getData(['theme', 'header', 'position']) === 'body'); ?> && getData(['theme', 'header', 'wide']) === 'container'); ?>){ - menuWidth = "getData(['theme', 'site', 'width']); ?>"; - $("nav").css("width", menuWidth); - $("nav").css("display", "block"); - $("nav").css("margin", "auto"); - } else { - $("nav").css("width", menuWidth); - } - } - // Visibilité du select 'disposition' if( getData(['theme', 'site', 'width']) !== '100%'); ?> && ( $("#themeMenuPosition").val() === 'top' || ( getData(['theme', 'header', 'wide']) === 'none'); ?> && ( $("#themeMenuPosition").val() === 'body-first' || $("#themeMenuPosition").val() === 'body-second')) ) ) {