added img-responsive to images in chat messages

v1.18.x
Baris Soner Usakli 11 years ago
parent 9fbd5ed596
commit 0f5b3ae859

@ -228,9 +228,11 @@ define(['taskbar', 'string'], function(taskbar, S) {
var date = new Date(parseInt(timestamp, 10));
var prefix = '<span class="chat-timestamp">' + date.toLocaleTimeString() + '</span> ';
message = '<li>' + S(prefix + message).stripTags('p').s + '</li>';
message = $('<li>' + S(prefix + message).stripTags('p').s + '</li>');
message.find('img:not(".chat-user-image")').addClass('img-responsive');
chatContent.append(message);
scrollToBottom(chatContent);
};

Loading…
Cancel
Save