// Blocklayered: BugFix in pagination
// Blocklayered: Add translations // Blocklayered: BugFix with sliders (when cursor min and max are at 0) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10805 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -160,7 +160,17 @@ function getValueSelected(){
|
||||
}
|
||||
|
||||
function paginationButton() {
|
||||
$('#pagination li').not('.current, .disabled').each( function () {
|
||||
$('#pagination a').not(':hidden').each(function () {
|
||||
if ($(this).attr('href').search('&p=') == -1) {
|
||||
var page = 1;
|
||||
}
|
||||
else {
|
||||
var page = $(this).attr('href').replace(/^.*&p=(\d+).*$/, '$1');
|
||||
}
|
||||
var location = window.location.href.replace(/#.*$/, '');
|
||||
$(this).attr('href', location+current_friendly_url.replace(/\/page-(\d+)/, '')+'/page-'+page);
|
||||
});
|
||||
$('#pagination li').not('.current, .disabled').each(function () {
|
||||
var nbPage = 0;
|
||||
if ($(this).attr('id') == 'pagination_next')
|
||||
nbPage = parseInt($('#pagination li.current').children().html())+ 1;
|
||||
|
||||
Reference in New Issue
Block a user