fix crazy indents

v1.18.x
barisusakli 9 years ago
parent 5d9373730a
commit 78bb4776df

@ -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',
});
});
});
}
});
}
};

Loading…
Cancel
Save