Sha256: 0fd0a30877bfe241a5f7a5c6a07ede28f62c47dfcfea9447a34a8fb9e46dcf61
Contents?: true
Size: 1.58 KB
Versions: 5
Compression:
Stored size: 1.58 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).prop('disabled', false); $('#payment_method_' + this.value).show(); } } ); $('.payment_methods_radios').each( function() { if (this.checked) { $('#payment_method_' + this.value).prop('disabled', false); $('#payment_method_' + this.value).show(); } else { $('#payment_method_' + this.value).hide(); $('#payment_method_' + this.value).prop('disabled', true); } if ($("#card_new" + this.value).is("*")) { $("#card_new" + this.value).radioControlsVisibilityOfElement('#card_form' + this.value); } } ); $('.cvvLink').click(function(event){ window_name = 'cvv_info'; window_options = 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1'; window.open($(this).prop('href'), window_name, window_options); event.preventDefault(); }); $('select.jump_menu').change(function(){ window.location = this.options[this.selectedIndex].value; }); } });
Version data entries
5 entries across 5 versions & 1 rubygems