Skip to content

Commit

Permalink
Removed not used js code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 10, 2023
1 parent 21ff91f commit f1885f0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions _dev/js/checkout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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();
});

0 comments on commit f1885f0

Please sign in to comment.