mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
removing console log and removing a bit of code that would cause infinite loader to take 2.5s extra each round :P
This commit is contained in:
@@ -957,7 +957,6 @@ define(['composer'], function(composer) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
console.log(infiniteLoaderActive);
|
|
||||||
if (scrollTop + windowHeight == jQuery(document).height() && !infiniteLoaderActive) {
|
if (scrollTop + windowHeight == jQuery(document).height() && !infiniteLoaderActive) {
|
||||||
pagination.innerHTML = Topic.postCount + ' out of ' + Topic.postCount;
|
pagination.innerHTML = Topic.postCount + ' out of ' + Topic.postCount;
|
||||||
progressBar.width('100%');
|
progressBar.width('100%');
|
||||||
|
|||||||
@@ -204,9 +204,7 @@ SocketTopics.loadMore = function(socket, data, callback) {
|
|||||||
end = start + 9;
|
end = start + 9;
|
||||||
|
|
||||||
topics.getTopicPosts(data.tid, start, end, socket.uid, function(err, posts) {
|
topics.getTopicPosts(data.tid, start, end, socket.uid, function(err, posts) {
|
||||||
setTimeout(function() {
|
|
||||||
callback(err, {posts: posts});
|
callback(err, {posts: posts});
|
||||||
}, 2500);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user