Sha256: 9c8834f8d8860127efc53d0df79f0248c797407adbd971817606f14af749db1f

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

(function($){
  $(document).ready(function(){
    if($('form#update-cart').is('*')){
      $('form#update-cart a.delete').show().live('click', function(e){
        $(this).parents('tr').first().find('input.line_item_quantity').val(0);
        $(this).parents('form').first().submit();
        e.preventDefault();
      });
    }
  });
})(jQuery);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_core-1.0.0 app/assets/javascripts/store/cart.js
spree_core-1.0.0.rc4 app/assets/javascripts/store/cart.js
spree_core-1.0.0.rc3 app/assets/javascripts/store/cart.js