mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: add loadingMore flag to chat infinite load
This commit is contained in:
@@ -72,7 +72,7 @@ define('forum/chats/recent', ['alerts', 'api'], function (alerts, api) {
|
|||||||
if (!data.rooms.length) {
|
if (!data.rooms.length) {
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
data.loadingMore = true;
|
||||||
app.parseAndTranslate('chats', 'rooms', data, function (html) {
|
app.parseAndTranslate('chats', 'rooms', data, function (html) {
|
||||||
$('[component="chat/recent"]').append(html);
|
$('[component="chat/recent"]').append(html);
|
||||||
html.find('.timeago').timeago();
|
html.find('.timeago').timeago();
|
||||||
|
|||||||
Reference in New Issue
Block a user