This commit is contained in:
psychobunny
2015-09-28 17:20:55 -04:00
parent 4c4d560f64
commit 81b3ae2597

View File

@@ -95,18 +95,17 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
index = parseInt($(navigator.selector).first().attr('data-index'), 10);
$(navigator.selector).each(function() {
var el = $(this);
index++;
if (el.offset().top > middleOfViewport) {
if ($(this).offset().top > middleOfViewport) {
return false;
}
});
if (typeof navigator.callback === 'function') {
navigator.callback(index, count);
navigator.updateTextAndProgressBar();
}
navigator.updateTextAndProgressBar();
};
navigator.updateTextAndProgressBar = function() {