Sha256: df72de3c03336ec3d56f7ec9d6dd89fafd5494343b49f250c8913525aea0a362

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 Bytes

Contents

$ ->
  if $('.new_payment').is('*')
    $('.payment-method-settings fieldset').addClass('hidden').first().removeClass('hidden')
    $('input[name="payment[payment_method_id]"]').click ()->
      $('.payment-method-settings fieldset').addClass('hidden')
      id = $(this).parents('div.radio').data('id')
      $("fieldset[data-id='#{id}']").removeClass('hidden')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-3.0.1 app/assets/javascripts/spree/backend/select_payments.js.coffee
spree_backend-3.0.0 app/assets/javascripts/spree/backend/select_payments.js.coffee
spree_backend-3.0.0.rc4 app/assets/javascripts/spree/backend/select_payments.js.coffee
spree_backend-3.0.0.rc3 app/assets/javascripts/spree/backend/select_payments.js.coffee
spree_backend-3.0.0.rc1 app/assets/javascripts/spree/backend/select_payments.js.coffee