Start reading progress at 0

v1.18.x
RoiEX 7 years ago committed by GitHub
parent 7f67528280
commit 92d3844988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,7 +193,7 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, co
index = index > count ? count : index;
var relIndex = getRelativeIndex();
$('.pagination-block .pagination-text').translateHtml('[[global:pagination.out_of, ' + relIndex + ', ' + count + ']]');
var fraction = relIndex / count;
var fraction = (relIndex - 1) / (count - 1 || 1);
$('.pagination-block meter').val(fraction);
$('.pagination-block .progress-bar').width((fraction * 100) + '%');
};

Loading…
Cancel
Save