[-] FO: fixed bug Block Cart in columns disappear if product is removed - #PSCFV-7495

This commit is contained in:
sLorenzini
2013-01-28 11:54:06 +01:00
parent f66a450e97
commit 42f8289d3d
+3 -3
View File
@@ -315,7 +315,7 @@ var ajaxCart = {
// If the cart is now empty, show the 'no product in the cart' message and close detail // If the cart is now empty, show the 'no product in the cart' message and close detail
if($('#cart_block dl.products dt').length == 0) if($('#cart_block dl.products dt').length == 0)
{ {
$("#cart_block").stop(true, true).slideUp(200); $("#header #cart_block").stop(true, true).slideUp(200);
$('#cart_block_no_products:hidden').slideDown(450); $('#cart_block_no_products:hidden').slideDown(450);
$('#cart_block dl.products').remove(); $('#cart_block dl.products').remove();
} }
@@ -683,10 +683,10 @@ $(document).ready(function(){
$("#cart_block").stop(true, true).slideDown(450); $("#cart_block").stop(true, true).slideDown(450);
}, },
function() { function() {
$('#shopping_cart a').css('border-radius', '3px'); $('#header #shopping_cart a').css('border-radius', '3px');
setTimeout(function() { setTimeout(function() {
if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())
$("#cart_block").stop(true, true).slideUp(450); $("#header #cart_block").stop(true, true).slideUp(450);
}, 200); }, 200);
} }
); );