[-] FO : Fix bug #PSCFV-10497 cart_block hooked on column disappearing

This commit is contained in:
gRoussac
2013-10-08 18:37:50 +02:00
parent 85946bacbe
commit 008c6ce759
+4 -4
View File
@@ -706,18 +706,18 @@ $(document).ready(function(){
function() { function() {
$(this).css('border-radius', '3px 3px 0px 0px'); $(this).css('border-radius', '3px 3px 0px 0px');
if (ajaxCart.nb_total_products > 0 || cart_qty > 0) if (ajaxCart.nb_total_products > 0 || cart_qty > 0)
$("#cart_block").stop(true, true).slideDown(450); $("#header_right #cart_block").stop(true, true).slideDown(450);
}, },
function() { function() {
$('#shopping_cart a').css('border-radius', '3px'); $('#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_right #cart_block").stop(true, true).slideUp(450);
}, 200); }, 200);
} }
); );
$("#cart_block").hover( $("#header_right #cart_block").hover(
function() { function() {
$('#shopping_cart a').css('border-radius', '3px 3px 0px 0px'); $('#shopping_cart a').css('border-radius', '3px 3px 0px 0px');
}, },
@@ -725,7 +725,7 @@ $(document).ready(function(){
$('#shopping_cart a').css('border-radius', '3px'); $('#shopping_cart a').css('border-radius', '3px');
setTimeout(function() { setTimeout(function() {
if (!shopping_cart.isHoveringOver()) if (!shopping_cart.isHoveringOver())
$("#cart_block").stop(true, true).slideUp(450); $("#header_right #cart_block").stop(true, true).slideUp(450);
}, 200); }, 200);
} }
); );