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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@5916 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean committed 2011-04-15 10:17:53 +00:00
1 parent 900244c5b2
commit f8ee49ed56
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');
} }
}); });
}, },