add loading=false

v1.18.x
Barış Soner Uşaklı 6 years ago
parent ef55598822
commit 95ace13599

@ -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) {

Loading…
Cancel
Save