v1.18.x
psychobunny 10 years ago
parent 4c4d560f64
commit 81b3ae2597

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

Loading…
Cancel
Save