mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
recent unread cleanup
This commit is contained in:
@@ -44,10 +44,8 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
|
||||
function enableInfiniteLoading() {
|
||||
if(!config.usePagination) {
|
||||
$(window).off('scroll').on('scroll', function (ev) {
|
||||
var bottom = ($(document).height() - $(window).height()) * 0.9;
|
||||
|
||||
if ($(window).scrollTop() > bottom && !loadingMoreTopics) {
|
||||
app.enableInfiniteLoading(function() {
|
||||
if(!loadingMoreTopics) {
|
||||
Category.loadMoreTopics(templates.get('category_id'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user