From cf235e1f4f9d0d0f47e19de7cba0d55f69f40bf5 Mon Sep 17 00:00:00 2001 From: Claudio Hessel Date: Tue, 27 Dec 2022 13:04:09 -0300 Subject: [PATCH] PAOPN-284: removed '.selector' function which is deprecated in jQuery 3 --- .../web/js/core/checkout/PaymentMethodController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/frontend/web/js/core/checkout/PaymentMethodController.js b/view/frontend/web/js/core/checkout/PaymentMethodController.js index 18364139..eb5a8308 100644 --- a/view/frontend/web/js/core/checkout/PaymentMethodController.js +++ b/view/frontend/web/js/core/checkout/PaymentMethodController.js @@ -399,8 +399,8 @@ PaymentMethodController.prototype.addCreditCardNumberListener = function(formObj }; PaymentMethodController.prototype.twoCardsTotal = function (paymentMethod) { - var card1 = paymentMethod.formObject[0].creditCardInstallments.selector; - var card2 = paymentMethod.formObject[1].creditCardInstallments.selector; + var card1 = paymentMethod.formObject[0].creditCardInstallments; + var card2 = paymentMethod.formObject[1].creditCardInstallments; var totalCard1 = paymentMethod.formObject[0].inputAmount.val().replace(platformConfig.currency.decimalSeparator, "."); var totalCard2 = paymentMethod.formObject[1].inputAmount.val().replace(platformConfig.currency.decimalSeparator, "."); @@ -418,7 +418,7 @@ PaymentMethodController.prototype.twoCardsTotal = function (paymentMethod) { } PaymentMethodController.prototype.boletoCreditCardTotal = function (paymentMethod) { - var cardElement = paymentMethod.formObject[1].creditCardInstallments.selector; + var cardElement = paymentMethod.formObject[1].creditCardInstallments; var sumInterestTotal = jQuery(cardElement).find(":selected").attr("interest");