[-] MO : Fixed Blockcart jump effect on hover

This commit is contained in:
jObregon
2012-05-19 16:15:31 +00:00
parent 9e599c78fa
commit 3cce414a05
+9 -9
View File
@@ -671,21 +671,21 @@ $(document).ready(function(){
var cart_block = new HoverWatcher('#cart_block');
var shopping_cart = new HoverWatcher('#shopping_cart');
$("#shopping_cart").hover(function(){
$("#shopping_cart a:first").hover(function(){
$(this).css('border-radius', '3px 3px 0px 0px');
$("#header #cart_block").stop(true, true).slideDown(450);
},
function() {
setTimeout(function() {
if (!cart_block.isHoveringOver())
$("#header #cart_block").stop(true, true).slideUp(450);
}, 200);
$(this).css('border-radius', '3px');
$("#header #cart_block").stop(true, true);
if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())
$("#header #cart_block").slideUp(450);
});
$("#cart_block").hover(function() {}, function(){
setTimeout(function() {
if (!shopping_cart.isHoveringOver())
$("#header #cart_block").stop(true, true).slideUp(450);
}, 200);
$("#header #cart_block").stop(true, true);
if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())
$("#header #cart_block").slideUp(450);
});
$('.delete_voucher').live('click', function() {