mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
add loading=false
This commit is contained in:
@@ -119,12 +119,14 @@ define('forum/chats', [
|
|||||||
return app.alertError(err.message);
|
return app.alertError(err.message);
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
data = data.filter(function (chatMsg) {
|
data = data.filter(function (chatMsg) {
|
||||||
return !$('[component="chat/message"][data-mid="' + chatMsg.messageId + '"]').length;
|
return !$('[component="chat/message"][data-mid="' + chatMsg.messageId + '"]').length;
|
||||||
});
|
});
|
||||||
if (!data.length) {
|
if (!data.length) {
|
||||||
|
loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
messages.parseMessage(data, function (html) {
|
messages.parseMessage(data, function (html) {
|
||||||
|
|||||||
Reference in New Issue
Block a user