From f1885f048ac88a3b8c583a58eb47dd2cf6e1a1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Wed, 11 Oct 2023 01:51:14 +0200 Subject: [PATCH] Removed not used js code --- _dev/js/checkout/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/_dev/js/checkout/index.js b/_dev/js/checkout/index.js index 4b37133e..d3a57694 100644 --- a/_dev/js/checkout/index.js +++ b/_dev/js/checkout/index.js @@ -67,11 +67,6 @@ $(document).ready(() => { // and show the one related to the selected carrier params.deliveryOption.nextElementSibling.classList.remove('d-none'); }); - prestashop.on('changedCheckoutStep', (params) => { - if (typeof params.event.currentTarget !== 'undefined') { - $('.collapse', params.event.currentTarget).not('.show').not('.collapse .collapse').collapse('show'); - } - }); }); $(document).on('change', '.checkout-option input[type="radio"]', (event) => { @@ -82,9 +77,3 @@ $(document).on('change', '.checkout-option input[type="radio"]', (event) => { $relatedBlocks.find('.checkout-option').removeClass('selected'); $block.addClass('selected'); }); - -$(document).on('click', '.js-checkout-step-header', (event) => { - const stepIdentifier = $(event.currentTarget).data('identifier'); - $(`#${stepIdentifier}`).addClass('-current'); - $(`#content-${stepIdentifier}`).collapse('show').scrollTop(); -});