// blocklayered : Fix bug with pagination reloading
This commit is contained in:
@@ -391,12 +391,16 @@ function reloadContent(params_plus)
|
|||||||
if ($(result.pagination).find('ul.pagination').length)
|
if ($(result.pagination).find('ul.pagination').length)
|
||||||
{
|
{
|
||||||
$('div#pagination').show();
|
$('div#pagination').show();
|
||||||
$('ul.pagination').replaceWith($(result.pagination).find('ul.pagination'));
|
$('ul.pagination').each(function () {
|
||||||
|
$(this).replaceWith($(result.pagination).find('ul.pagination'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else if (!$('ul.pagination').length)
|
else if (!$('ul.pagination').length)
|
||||||
{
|
{
|
||||||
$('div#pagination').show();
|
$('div#pagination').show();
|
||||||
$('div#pagination').html($(result.pagination));
|
$('div#pagination').each(function () {
|
||||||
|
$(this).html($(result.pagination));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user