From 49946ada4ccf78f3a0ea51011f54fd8fa2ca27b7 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 3 Apr 2012 14:17:10 +0000 Subject: [PATCH] [-] Project : #PSFV-781 - Fix problem on transplanted Block cart on left/right collumn --- modules/blockcart/ajax-cart.js | 14 +++++++------- modules/blockcart/blockcart.css | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 4b079fe6d..06d3c767b 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -93,9 +93,9 @@ var ajaxCart = { expand : function(){ if ($('#cart_block #cart_block_list').hasClass('collapsed')) { - $('#cart_block #cart_block_summary').slideUp(200, function(){ + $('#header #cart_block #cart_block_summary').slideUp(200, function(){ $(this).addClass('collapsed').removeClass('expanded'); - $('#cart_block #cart_block_list').slideDown({ + $('#header #cart_block #cart_block_list').slideDown({ duration: 600, complete: function(){$(this).addClass('expanded').removeClass('collapsed');} }); @@ -141,9 +141,9 @@ var ajaxCart = { if ($('#cart_block #cart_block_list').hasClass('expanded')) { - $('#cart_block #cart_block_list').slideUp('slow', function(){ + $('#header #cart_block #cart_block_list').slideUp('slow', function(){ $(this).addClass('collapsed').removeClass('expanded'); - $('#cart_block #cart_block_summary').slideDown(700, function(){ + $('#header #cart_block #cart_block_summary').slideDown(700, function(){ $(this).addClass('expanded').removeClass('collapsed'); }); }); @@ -659,19 +659,19 @@ $(document).ready(function(){ var shopping_cart = new HoverWatcher('#shopping_cart'); $("#shopping_cart").hover(function(){ - $("#cart_block").stop(true, true).slideDown(450); + $("#header #cart_block").stop(true, true).slideDown(450); }, function() { setTimeout(function() { if (!cart_block.isHoveringOver()) - $("#cart_block").stop(true, true).slideUp(450); + $("#header #cart_block").stop(true, true).slideUp(450); }, 200); }); $("#cart_block").hover(function() {}, function(){ setTimeout(function() { if (!shopping_cart.isHoveringOver()) - $("#cart_block").stop(true, true).slideUp(450); + $("#header #cart_block").stop(true, true).slideUp(450); }, 200); }); diff --git a/modules/blockcart/blockcart.css b/modules/blockcart/blockcart.css index dfdb26b94..12d708f56 100644 --- a/modules/blockcart/blockcart.css +++ b/modules/blockcart/blockcart.css @@ -1,5 +1,10 @@ /* Special style for block cart*/ -#cart_block { +#left_column #cart_block, #right_column #cart_block { +} +#header #cart_block h4 { + display: none; +} +#header #cart_block { z-index: 10; display:none; position: absolute; @@ -17,11 +22,6 @@ background:#eee } #cart_block.cart_block_hover {display:block} -#cart_block h4 { - display:none; - padding-left:36px; - background:url(img/pict_cart_block_h4.png) no-repeat 5px 0 -} #cart_block h4 span { float: right; padding-left: 10px;