[-] Project : #PSFV-781 - Fix bug with blockcart adding product animation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14510 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
55160ef45d
commit
0b38e94d5e
1 file changed
+4
-1
@@ -217,7 +217,10 @@ var ajaxCart = {
|
|||||||
$picture.css({'position': 'absolute', 'top': pictureOffsetOriginal.top, 'left': pictureOffsetOriginal.left});
|
$picture.css({'position': 'absolute', 'top': pictureOffsetOriginal.top, 'left': pictureOffsetOriginal.left});
|
||||||
|
|
||||||
var pictureOffset = $picture.offset();
|
var pictureOffset = $picture.offset();
|
||||||
var cartBlockOffset = $('#shopping_cart').offset();
|
if ($('#cart_block').offset().top && $('#cart_block').offset().left)
|
||||||
|
var cartBlockOffset = $('#cart_block').offset();
|
||||||
|
else
|
||||||
|
var cartBlockOffset = $('#shopping_cart').offset();
|
||||||
|
|
||||||
// Check if the block cart is activated for the animation
|
// Check if the block cart is activated for the animation
|
||||||
if (cartBlockOffset != undefined && $picture.size())
|
if (cartBlockOffset != undefined && $picture.size())
|
||||||
|
|||||||
Reference in new issue
Block a user