[IMP] website_payment: remove debug code
Remove logging unecessary information. While this info is not persistent or transmited, there is no reason to log it in developper console.
This commit is contained in:
parent
d67772da57
commit
2346a51ed0
|
@ -7,7 +7,6 @@ $(document).ready(function () {
|
|||
$('input#cc_number').on('focusout', function (e) {
|
||||
var valid_value = $.payment.validateCardNumber(this.value);
|
||||
var card_type = $.payment.cardType(this.value);
|
||||
console.log('Validating card', this.value, 'is a', card_type, 'and valid:', valid_value);
|
||||
if (card_type) {
|
||||
$(this).parent('.form-group').children('.card_placeholder').removeClass().addClass('card_placeholder ' + card_type);
|
||||
}
|
||||
|
@ -28,7 +27,6 @@ $(document).ready(function () {
|
|||
var cc_nbr = $(this).parents('.oe_cc').find('#cc_number').val();
|
||||
var card_type = $.payment.cardType(cc_nbr);
|
||||
var valid_value = $.payment.validateCardCVC(this.value, card_type);
|
||||
console.log('Validating CVC', this.value, 'for card', cc_nbr, 'of type', card_type, 'and is valid:', valid_value);
|
||||
if (valid_value) {
|
||||
$(this).parent('.form-group').addClass('has-success');
|
||||
$(this).parent('.form-group').removeClass('has-error');
|
||||
|
@ -44,7 +42,6 @@ $(document).ready(function () {
|
|||
var month = expiry_value.month || '';
|
||||
var year = expiry_value.year || '';
|
||||
var valid_value = $.payment.validateCardExpiry(month, year);
|
||||
console.log('Validating expiry', this.value, 'month', month, 'year', year, 'and is valid:', valid_value);
|
||||
if (valid_value) {
|
||||
$(this).parent('.form-group').addClass('has-success');
|
||||
$(this).parent('.form-group').removeClass('has-error');
|
||||
|
|
Loading…
Reference in New Issue