[-] MO : Blocklayered follow up https://github.com/PrestaShop/PrestaShop/commit/a6e67b078e067445eef358e907649e843a1dc26a#commitcomment-4538556
This commit is contained in:
@@ -230,12 +230,11 @@ function initLayered()
|
|||||||
|
|
||||||
function paginationButton() {
|
function paginationButton() {
|
||||||
$('#pagination a').not(':hidden').each(function () {
|
$('#pagination a').not(':hidden').each(function () {
|
||||||
if ($(this).attr('href').search(/&|\?p=/) == -1) {
|
if ($(this).attr('href').search(/[&|\?]p=/) == -1)
|
||||||
var page = 1;
|
var page = 1;
|
||||||
}
|
else
|
||||||
else {
|
var page = $(this).attr('href').replace(/^.*[&|\?]p=(\d+).*$/, '$1');
|
||||||
var page = $(this).attr('href').replace(/^.*[&|\?]p=(\d+).*$/, '$1');
|
|
||||||
}
|
|
||||||
var location = window.location.href.replace(/#.*$/, '');
|
var location = window.location.href.replace(/#.*$/, '');
|
||||||
$(this).attr('href', location+current_friendly_url.replace(/\/page-(\d+)/, '')+'/page-'+page);
|
$(this).attr('href', location+current_friendly_url.replace(/\/page-(\d+)/, '')+'/page-'+page);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user