{I" class:ETI"ProcessedAsset; FI"logical_path; TI"'spree/frontend/checkout/payment.js; FI" pathname; TI"~/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_frontend-2.2.4/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+Ê‘TI"length; Ti¼I"digest; TI"%e411e8322da9ca7bf872b26238f1ea7f; FI"source; TI"¼(function() { Spree.ready(function($) { Spree.onPayment = function() { if (($('#checkout_form_payment')).is('*')) { if (($('#existing_cards')).is('*')) { ($('#payment-method-fields')).hide(); ($('#payment-methods')).hide(); ($('#use_existing_card_yes')).click(function() { ($('#payment-method-fields')).hide(); ($('#payment-methods')).hide(); return ($('.existing-cc-radio')).prop("disabled", false); }); ($('#use_existing_card_no')).click(function() { ($('#payment-method-fields')).show(); ($('#payment-methods')).show(); return ($('.existing-cc-radio')).prop("disabled", true); }); } $(".cardNumber").payment('formatCardNumber'); $(".cardExpiry").payment('formatCardExpiry'); $(".cardCode").payment('formatCardCVC'); $(".cardNumber").change(function() { return $(this).parent().siblings(".ccType").val($.payment.cardType(this.value)); }); ($('input[type="radio"][name="order[payments_attributes][][payment_method_id]"]')).click(function() { ($('#payment-methods li')).hide(); if (this.checked) { return ($('#payment_method_' + this.value)).show(); } }); ($(document)).on('click', '#cvv_link', function(event) { var windowName, windowOptions; windowName = 'cvv_info'; windowOptions = 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1'; window.open(($(this)).attr('href'), windowName, windowOptions); return event.preventDefault(); }); ($('input[type="radio"]:checked')).click(); return $('#checkout_form_payment').submit(function() { var coupon_code, coupon_code_field, coupon_status, url; coupon_code_field = $('#order_coupon_code'); coupon_code = $.trim(coupon_code_field.val()); if (coupon_code !== '') { if ($('#coupon_status').length === 0) { coupon_status = $("
"); coupon_code_field.parent().append(coupon_status); } else { coupon_status = $("#coupon_status"); } url = Spree.url(Spree.routes.apply_coupon_code(Spree.current_order_id), { order_token: Spree.current_order_token, coupon_code: coupon_code }); coupon_status.removeClass(); return $.ajax({ async: false, method: "PUT", url: url, success: function(data) { coupon_code_field.val(''); coupon_status.addClass("success").html("Coupon code applied successfully."); return true; }, error: function(xhr) { var handler; handler = JSON.parse(xhr.responseText); coupon_status.addClass("error").html(handler["error"]); $('.continue').attr('disabled', false); return false; } }); } }); } }; return Spree.onPayment(); }); }).call(this); ; TI"dependency_digest; TI"%835a81a13a93ea47127a2c7e8075f624; FI"required_paths; T[I"~/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_frontend-2.2.4/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee; FI"dependency_paths; T[{I" path; TI"~/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_frontend-2.2.4/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee; FI" mtime; TI"2014-09-04T12:22:34-04:00; TI"digest; TI"%1f2159afe0be7e6d23457869e20be0d1; FI" _version; TI"%5ef14a844324cba3e114bd0123f88a5e; F