diff --git a/CHANGELOG.md b/CHANGELOG.md index 10352ccaa9..edc2112cab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Draft +- Refactor cart, payment account page inline event handlers to event listeners [#2536](https://github.com/bigcommerce/cornerstone/pull/2536) ## 6.16.0 (01-15-2025) - Remove escaping of "=" symbol for
for blog and brand [#2528](https://github.com/bigcommerce/cornerstone/pull/2528) diff --git a/assets/js/theme/cart.js b/assets/js/theme/cart.js index 08a6415ce7..e05377e9f6 100644 --- a/assets/js/theme/cart.js +++ b/assets/js/theme/cart.js @@ -402,6 +402,10 @@ export default class Cart extends PageManager { this.bindGiftWrappingForm(); }); }); + + $('.cart-item-option-remove').on('click', () => { + window.confirm(this.context.giftWrappingRemoveMessage); + }); } bindGiftWrappingForm() { diff --git a/templates/components/cart/item-giftwrap.html b/templates/components/cart/item-giftwrap.html index d5a46f0734..547ca2d628 100644 --- a/templates/components/cart/item-giftwrap.html +++ b/templates/components/cart/item-giftwrap.html @@ -7,7 +7,7 @@