Sha256: 89220fe3b5b7b0bb742480f0d5e4c79581b00f7f3b6a150e33aa018ab1438136
Contents?: true
Size: 1.23 KB
Versions: 5
Compression:
Stored size: 1.23 KB
Contents
//= require jquery.payment $(document).ready(function() { if ($("#new_payment").is("*")) { $(".cardNumber").payment('formatCardNumber'); $(".cardExpiry").payment('formatCardExpiry'); $(".cardCode").payment('formatCardCVC'); $(".cardNumber").change(function() { $(".ccType").val($.payment.cardType(this.value)) }) $('.payment_methods_radios').click( function() { $('.payment-methods').hide(); $('.payment-methods :input').prop('disabled', true); if (this.checked) { $('#payment_method_' + this.value + ' :input').prop('disabled', false); $('#payment_method_' + this.value).show(); } } ); $('.payment_methods_radios').each( function() { if (this.checked) { $('#payment_method_' + this.value + ' :input').prop('disabled', false); $('#payment_method_' + this.value).show(); } else { $('#payment_method_' + this.value).hide(); $('#payment_method_' + this.value + ' :input').prop('disabled', true); } if ($("#card_new" + this.value).is("*")) { $("#card_new" + this.value).radioControlsVisibilityOfElement('#card_form' + this.value); } } ); } });
Version data entries
5 entries across 5 versions & 1 rubygems