Skip to content

Commit

Permalink
use on and not live in cart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jun 6, 2012
1 parent 07b3e03 commit eea86ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/assets/javascripts/store/cart.js
@@ -1,7 +1,7 @@
(function($){
$(document).ready(function(){
if($('form#update-cart').is('*')){
$('form#update-cart a.delete').show().live('click', function(e){
$('form#update-cart a.delete').show().on('click', function(e){
$(this).parents('.line-item').first().find('input.line_item_quantity').val(0);
$(this).parents('form').first().submit();
e.preventDefault();
Expand Down

0 comments on commit eea86ab

Please sign in to comment.