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

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