[-] FO : fixed bug #PSCFI-1489 - Clicking on "Add to cart" - Button disables all "Add to cart"

This commit is contained in:
tDidierjean
2011-04-15 10:17:53 +00:00
parent fbd7f6b68f
commit 00aea58693
+2 -2
View File
@@ -173,7 +173,7 @@ var ajaxCart = {
$('.filled').removeClass('filled');
}
else
$('.ajax_add_to_cart_button').attr('disabled', 'disabled');
$(callerElement).attr('disabled', 'disabled');
if ($('#cart_block #cart_block_list').hasClass('collapsed'))
this.expand();
@@ -220,7 +220,7 @@ var ajaxCart = {
if (addedFromProductPage)
$('body#product p#add_to_cart input').removeAttr('disabled').addClass('exclusive').removeClass('exclusive_disabled');
else
$('.ajax_add_to_cart_button').removeAttr('disabled');
$(callerElement).removeAttr('disabled');
}
});
},