// 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:
mDeflotte
2011-11-30 14:50:45 +00:00
parent 72b833fe31
commit ff3c4b6881
5 changed files with 211 additions and 123 deletions
+11 -1
View File
@@ -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;