// blocklayered : Fix bug with pagination reloading
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15159 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
9ffe8b1056
commit
214a026c48
1 file changed
+6
-2
@@ -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