mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
recent unread cleanup
This commit is contained in:
@@ -396,6 +396,16 @@ var socket,
|
||||
});
|
||||
};
|
||||
|
||||
app.enableInfiniteLoading = function(callback) {
|
||||
$(window).off('scroll').on('scroll', function() {
|
||||
var bottom = ($(document).height() - $(window).height()) * 0.9;
|
||||
|
||||
if ($(window).scrollTop() > bottom) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var titleObj = {
|
||||
active: false,
|
||||
interval: undefined,
|
||||
|
||||
Reference in New Issue
Block a user