From c80fa2546b55aa0f758c0eac647487874a077434 Mon Sep 17 00:00:00 2001 From: mvanger Date: Sun, 22 Sep 2013 13:53:45 -0500 Subject: [PATCH] added jpg --- app/views/home/_script_to_load.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/home/_script_to_load.html.erb b/app/views/home/_script_to_load.html.erb index 0f12129..51f2efe 100644 --- a/app/views/home/_script_to_load.html.erb +++ b/app/views/home/_script_to_load.html.erb @@ -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) { $('
' + sender + '
' + time +