[-] Project : #PSFV-781 - Fix problem on transplanted Block cart on left/right collumn

This commit is contained in:
mDeflotte
2012-04-03 14:17:10 +00:00
parent 8cf2c23621
commit 49946ada4c
2 changed files with 13 additions and 13 deletions
+7 -7
View File
@@ -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);
});
+6 -6
View File
@@ -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;