';
}
html += '
' + $(element).find('.cart-box').html() + '
';
html += '
' + $(element).find('.name').html() + '
';
var price = $(element).find('.price').html();
if (price != null) {
html += '
' + price + '
';
}
$(element).html(html);
});
$('.poshytips').poshytip({
className: 'tip-twitter',
showTimeout: 1,
alignTo: 'target',
alignX: 'center',
offsetY: 5,
allowTipHover: false
});
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5,
width:"1050px",
height:"750px",
fixed:true,
rel: "colorbox"
});
$('.display').html('Вид:
');
$.totalStorage('display', 'list');
} else {
$('.product-list').attr('class', 'product-grid');
$('.product-grid > div').each(function(index, element) {
html = '';
var image = $(element).find('.image').html();
if (image != null) {
html += '
' + image + '
';
}
html += '
' + $(element).find('.name').html() + '
';
var price = $(element).find('.price').html();
if (price != null) {
html += '
' + price + '
';
}
html += '
' + $(element).find('.cart-box').html() + '
';
$(element).html(html);
});
$('.poshytips').poshytip({
className: 'tip-twitter',
showTimeout: 1,
alignTo: 'target',
alignX: 'center',
offsetY: 5,
allowTipHover: false
});
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5,
width:"1050px",
height:"750px",
fixed:true,
rel: "colorbox"
});
$('.display').html('Вид:
');
$.totalStorage('display', 'grid');
}
}
view = $.totalStorage('display');
if (view) {
display(view);
} else {
display('list');
}