Skip to content

Node.js based forum software built for the modern web

moving chat timestamp to top of message, not end

Julian Lam7dffc2a2e9cc
diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js
index e68130519f..4d99a202f3 100644
--- a/public/src/modules/chat.js
+++ b/public/src/modules/chat.js
@@ -323,10 +323,11 @@ define(['taskbar', 'string', 'sounds'], function(taskbar, S, sounds) {
message.append(userPicture)
.append(userName)
- .append('<br/>');
+ .append('<br/>')
+ .prepend(time);
}
- message.append(S(data.content + time).stripTags('p').s);
+ message.append(S(data.content).stripTags('p').s);
message.toggleClass('chat-message-them', !isYou);
message.find('img:not(".chat-user-image")').addClass('img-responsive');