Sha256: fc54ea8a2d60a9d101e5604cadfcc463606bf9c66b231ad47b8d5716b3fe832b

Contents?: true

Size: 358 Bytes

Versions: 28

Compression:

Stored size: 358 Bytes

Contents

Spree.ready ($) ->
  if ($ 'form#update-cart').is('*')
    ($ 'form#update-cart a.delete').show().one 'click', ->
      ($ this).parents('.line-item').first().find('input.line_item_quantity').val 0
      ($ this).parents('form').first().submit()
      false

  ($ 'form#update-cart').submit ->
    ($ 'form#update-cart #update-button').attr('disabled', true)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_frontend-2.0.5 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.1.0 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.4 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.3 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.2 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.1 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.0 app/assets/javascripts/store/cart.js.coffee
spree_frontend-2.0.0.rc1 app/assets/javascripts/store/cart.js.coffee