mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 17:12:05 +02:00
cleanup
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user