mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
select by class
This commit is contained in:
@@ -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) + '%');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user