mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
closes #1273
This commit is contained in:
@@ -349,22 +349,10 @@ var socket,
|
||||
});
|
||||
};
|
||||
|
||||
app.scrollToTop = function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
});
|
||||
};
|
||||
|
||||
app.scrollToBottom = function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: $('html').height() - 100
|
||||
});
|
||||
};
|
||||
|
||||
var previousScrollTop = 0;
|
||||
|
||||
app.enableInfiniteLoading = function(callback) {
|
||||
$(window).off('scroll').on('scroll', function() {
|
||||
$(window).on('scroll', function() {
|
||||
|
||||
var top = $(window).height() * 0.1;
|
||||
var bottom = ($(document).height() - $(window).height()) * 0.9;
|
||||
|
||||
Reference in New Issue
Block a user