Sha256: 0b7fff6fef4ca02413c56e7d705867aceba3b2bcb106a7ac7600b807bb835012
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
//= require store/spree_frontend SpreePaypalExpress = { hidePaymentSaveAndContinueButton: function(paymentMethod) { if (SpreePaypalExpress.paymentMethodID && paymentMethod.val() == SpreePaypalExpress.paymentMethodID) { $('.continue').hide(); } else { $('.continue').show(); } } } $(document).ready(function() { checkedPaymentMethod = $('div[data-hook="checkout_payment_step"] input[type="radio"]:checked'); SpreePaypalExpress.hidePaymentSaveAndContinueButton(checkedPaymentMethod); paymentMethods = $('div[data-hook="checkout_payment_step"] input[type="radio"]').click(function (e) { SpreePaypalExpress.hidePaymentSaveAndContinueButton($(e.target)); }); })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_paypal_express_mutalis-2.0.4 | app/assets/javascripts/store/spree_paypal_express.js |