// Blocklayered: Fix bug with pagination
This commit is contained in:
@@ -386,9 +386,20 @@ function reloadContent(params_plus)
|
|||||||
$('#product_list').css('filter', '');
|
$('#product_list').css('filter', '');
|
||||||
|
|
||||||
if ($(result.pagination).find('ul.pagination').length)
|
if ($(result.pagination).find('ul.pagination').length)
|
||||||
|
{
|
||||||
|
$('div#pagination').show();
|
||||||
$('ul.pagination').replaceWith($(result.pagination).find('ul.pagination'));
|
$('ul.pagination').replaceWith($(result.pagination).find('ul.pagination'));
|
||||||
else
|
}
|
||||||
|
else if (!$('ul.pagination').length)
|
||||||
|
{
|
||||||
|
$('div#pagination').show();
|
||||||
$('div#pagination').html($(result.pagination));
|
$('div#pagination').html($(result.pagination));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('ul.pagination').html('');
|
||||||
|
$('div#pagination').hide();
|
||||||
|
}
|
||||||
|
|
||||||
paginationButton();
|
paginationButton();
|
||||||
ajaxLoaderOn = 0;
|
ajaxLoaderOn = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user