select by class

v1.18.x
barisusakli 9 years ago
parent 59cc52c660
commit d4206c047d

@ -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) + '%');
};

Loading…
Cancel
Save