Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/home/_script_to_load.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
// so if msg ends with .gif then in addition (or instead of) the pre tag it is wrapped
// in an img tag with msg as the src
chatroom.display_msg = function(sender, msg, time) {
if (msg.indexOf('.gif') != -1 ) {
if (msg.indexOf('.gif') != -1 || msg.indexOf('.jpg') != -1) {
$('<div class="row col-sm-12"><div class="col-sm-2 msg_display">' + sender +
'</div><div class="col-sm-9"><pre><img src="' + msg +
'" width=400 /></pre></div><div class="col-sm-1 de_emphasized msg_display">' + time +
Expand Down