[*] MO : blockcart - simpler selectors

This commit is contained in:
Grégoire Bélorgey committed 2013-05-28 09:37:32 +02:00
1 parent 3c129a0e64
commit 1652f3575c
1 file changed
+4 -4
+4 -4
View File
@@ -313,7 +313,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)
{ {
$("#header #cart_block").stop(true, true).slideUp(200); $("#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();
} }
@@ -689,10 +689,10 @@ $(document).ready(function(){
$("#cart_block").stop(true, true).slideDown(450); $("#cart_block").stop(true, true).slideDown(450);
}, },
function() { function() {
$('#header #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())
$("#header #cart_block").stop(true, true).slideUp(450); $("#cart_block").stop(true, true).slideUp(450);
}, 200); }, 200);
} }
); );
@@ -705,7 +705,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())
$("#header #cart_block").stop(true, true).slideUp(450); $("#cart_block").stop(true, true).slideUp(450);
}, 200); }, 200);
} }
); );