From 42f8289d3d8d222d0467d60b724b68ad2eca673d Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Mon, 28 Jan 2013 11:52:37 +0100 Subject: [PATCH] [-] FO: fixed bug Block Cart in columns disappear if product is removed - #PSCFV-7495 --- modules/blockcart/ajax-cart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 6bcbc5732..4bae73e82 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -315,7 +315,7 @@ var ajaxCart = { // 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) { - $("#cart_block").stop(true, true).slideUp(200); + $("#header #cart_block").stop(true, true).slideUp(200); $('#cart_block_no_products:hidden').slideDown(450); $('#cart_block dl.products').remove(); } @@ -683,10 +683,10 @@ $(document).ready(function(){ $("#cart_block").stop(true, true).slideDown(450); }, function() { - $('#shopping_cart a').css('border-radius', '3px'); + $('#header #shopping_cart a').css('border-radius', '3px'); setTimeout(function() { if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) - $("#cart_block").stop(true, true).slideUp(450); + $("#header #cart_block").stop(true, true).slideUp(450); }, 200); } );