removed inline css

This commit is contained in:
Baris Soner Usakli
2014-01-15 12:58:43 -05:00
parent b78dc3eca8
commit b303fdcfd7
2 changed files with 4 additions and 4 deletions

View File

@@ -227,9 +227,9 @@ define(['taskbar', 'string'], function(taskbar, S) {
var chatContent = chatModal.find('#chat-content');
var date = new Date(parseInt(timestamp, 10));
// todo Add this to a stylesheet instead of style tag
var prefix = '<span style="color: darkgrey;" class="chat-timestamp">' + date.toLocaleTimeString() + '</span> ';
message = "<div>" + S(prefix + message).stripTags('p').s + "</div>";
var prefix = '<span class="chat-timestamp">' + date.toLocaleTimeString() + '</span> ';
message = '<li>' + S(prefix + message).stripTags('p').s + '</li>';
chatContent.append(message);
scrollToBottom(chatContent);