Skip to content

Commit

Permalink
PAOPN-284: removed '.selector' function which is deprecated in jQuery 3
Browse files Browse the repository at this point in the history
  • Loading branch information
claudio-pagarme committed Dec 27, 2022
1 parent 22397ba commit cf235e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/frontend/web/js/core/checkout/PaymentMethodController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".");
Expand All @@ -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");

Expand Down

0 comments on commit cf235e1

Please sign in to comment.