Sha256: ad26eb02af0e5623674cc3c59865b99aea3a5b862cadd9d8e261688c3255d0e5

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

(function($){
  $(document).ready(function(){

    // Remove an item from the cart by setting its quantity to zero and posting the update form
    $('form#updatecart a.delete').show().live('click', function(e){
      $(this).parents('tr').find('input.line_item_quantity').val(0);
      $(this).parents('form').submit();
      e.preventDefault();
    });

    $("a[title]").tooltip();

  });
})(jQuery);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 public/javascripts/theme.js
synergy_bootstrap_theme-0.0.3 public/javascripts/theme.js
synergy_bootstrap_theme-0.0.2 public/javascripts/theme.js