BIRONI

Вид: Список / Сетка
На странице:
Сортировка:
'; html += '
' + $(element).find('.compare').html() + '
'; html += ''; html += '
'; var image = $(element).find('.image').html(); if (image != null) { html += '
' + image + '
'; } var price = $(element).find('.price').html(); if (price != null) { html += ''; } html += '
' + $(element).find('.name').html() + '
'; html += '
' + $(element).find('.description').html() + '
'; var rating = $(element).find('.rating').html(); if (rating != null) { html += '
' + rating + '
'; } html += '
'; $(element).html(html); }); $('.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() + '
'; html += '
' + $(element).find('.description').html() + '
'; var price = $(element).find('.price').html(); if (price != null) { html += ''; } var rating = $(element).find('.rating').html(); if (rating != null) { html += '
' + rating + '
'; } html += ''; html += '
' + $(element).find('.wishlist').html() + '
'; html += '
' + $(element).find('.compare').html() + '
'; $(element).html(html); }); $('.display').html('Вид: Список / Сетка'); $.totalStorage('display', 'grid'); } $(document).ready(name_scroll); } view = $.totalStorage('display'); if (view) { display(view); } else { display('list'); } //-->