From 42496cf258748dcc8999d1ec8d2f6a17f2b7af3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Thu, 12 Oct 2023 23:20:38 +0200 Subject: [PATCH] Removed not useful code --- _dev/js/theme/components/responsive.js | 3 --- modules/ps_mainmenu/ps_mainmenu.tpl | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/_dev/js/theme/components/responsive.js b/_dev/js/theme/components/responsive.js index b699b703..fe4eff35 100644 --- a/_dev/js/theme/components/responsive.js +++ b/_dev/js/theme/components/responsive.js @@ -39,9 +39,6 @@ function toggleMobileStyles() { swapChildren(el, target); } }); - - document.querySelectorAll('[data-collapse-hide-mobile]:not(.show)').forEach((el) => el.classList.remove('collapse')); - document.querySelectorAll('[data-modal-hide-mobile].show').forEach((el) => el.classList.remove('show')); } prestashop.emit('responsive update', { mobile: prestashop.responsive.mobile, diff --git a/modules/ps_mainmenu/ps_mainmenu.tpl b/modules/ps_mainmenu/ps_mainmenu.tpl index 136f0b13..840fac22 100644 --- a/modules/ps_mainmenu/ps_mainmenu.tpl +++ b/modules/ps_mainmenu/ps_mainmenu.tpl @@ -33,7 +33,7 @@ {/if} {if $node.children|count} -