fix crazy indents

This commit is contained in:
barisusakli
2016-02-25 18:11:45 +02:00
parent 5d9373730a
commit 78bb4776df

View File

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