diff --git a/js/commerce_add_to_cart_confirmation.js b/js/commerce_add_to_cart_confirmation.js index 9eed2d6..6f7ea9b 100644 --- a/js/commerce_add_to_cart_confirmation.js +++ b/js/commerce_add_to_cart_confirmation.js @@ -20,7 +20,7 @@ $(overlayParentSelector).append('
'); // Enable the close link. - $('.commerce-add-to-cart-confirmation-close').live('click touchend', function(e) { + $('.commerce-add-to-cart-confirmation-close').on('click touchend', function(e) { e.preventDefault(); $('.commerce-add-to-cart-confirmation').remove(); $('.' + overlayClass).remove();