mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
fix crazy indents
This commit is contained in:
@@ -567,8 +567,9 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
||||
chatsListEl.empty();
|
||||
|
||||
if (data.users.length === 0) {
|
||||
chatsListEl.translateHtml('<li><div><span>[[users:no-users-found]]</span></div></li>');
|
||||
} else {
|
||||
return chatsListEl.translateHtml('<li><div><span>[[users:no-users-found]]</span></div></li>');
|
||||
}
|
||||
|
||||
data.users.forEach(function(userObj) {
|
||||
function createUserImage() {
|
||||
return (userObj.picture ?
|
||||
@@ -583,7 +584,7 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
||||
|
||||
chatEl.append(createUserImage());
|
||||
|
||||
chatEl.click(function() {
|
||||
chatEl.on('click', function() {
|
||||
socket.emit('modules.chats.hasPrivateChat', userObj.uid, function(err, roomId) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
@@ -596,8 +597,6 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user