mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
fixes wrong topics getting loaded into wrong categories
This commit is contained in:
@@ -26,6 +26,7 @@ var ajaxify = {};
|
|||||||
};
|
};
|
||||||
|
|
||||||
ajaxify.go = function(url, callback, template, quiet) {
|
ajaxify.go = function(url, callback, template, quiet) {
|
||||||
|
$(window).off('scroll');
|
||||||
// leave room and join global
|
// leave room and join global
|
||||||
app.enter_room('global');
|
app.enter_room('global');
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
|
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
|
||||||
|
|
||||||
if (document.body.scrollTop > bottom && !loadingMoreTopics) {
|
if (document.body.scrollTop > bottom && !loadingMoreTopics) {
|
||||||
|
console.log('fail', cid);
|
||||||
loadMoreTopics(cid);
|
loadMoreTopics(cid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user