From d4206c047df2a1d101650ed19c49a894d555f9a0 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 1 Oct 2015 17:43:03 -0400 Subject: [PATCH] select by class --- public/src/modules/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index b9ac5f6403..251cc78182 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -91,7 +91,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com toggle(!!count); var middleOfViewport = $(window).scrollTop() + $(window).height() / 2; - + index = parseInt($(navigator.selector).first().attr('data-index'), 10); $(navigator.selector).each(function() { @@ -111,7 +111,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com navigator.updateTextAndProgressBar = function() { index = index > count ? count : index; - $('#pagination').translateHtml('[[global:pagination.out_of, ' + index + ', ' + count + ']]'); + $('.pagination-block .pagination-text').translateHtml('[[global:pagination.out_of, ' + index + ', ' + count + ']]'); $('.pagination-block .progress-bar').width((index / count * 100) + '%'); };