Sha256: b6d880a6d4af2f7008fc53944b52f679f0029ba74407af83300b0ead7b12b7b9

Contents?: true

Size: 490 Bytes

Versions: 15

Compression:

Stored size: 490 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)

Spree.fetch_cart = ->
  Spree.ajax
    url: Spree.pathFor("cart_link"),
    success: (data) ->
      $('#link-to-cart').html data

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solidus_frontend-1.0.7 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.6 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.5 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.4 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.3 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.1.0.pre1 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.1.0.beta1 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.2 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.1 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0.rc2 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0.rc1 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0.pre3 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0.pre2 app/assets/javascripts/spree/frontend/cart.js.coffee
solidus_frontend-1.0.0.pre app/assets/javascripts/spree/frontend/cart.js.coffee