From 1cd2984c05ac2dfeef74fb03964356114a806929 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 20 Mar 2015 15:11:53 +0800 Subject: [PATCH] =?UTF-8?q?#2066=20=E7=BD=91=E7=AB=99=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=99=84=E4=BB=B6=E9=93=BE=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E8=83=BD=E5=90=A6=E7=82=B9=E5=87=BB=E5=90=8E=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9C=A8=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E4=B8=8B=E8=BD=BD=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 9e9bc9859..2b9d1586f 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -629,7 +629,7 @@ function img_thumbnails() { $('.thumbnails a').colorbox({rel:'nofollow'}); $('.attachments').find('a').each(function(index, element) { var href_value = $(element).attr('href'); - if (/\.(jpg|png|gif|bmp)$/.test(href_value)) { + if (/\.(jpg|png|gif|bmp|PNG|BMP|GIF|JPG)$/.test(href_value)) { $(element).colorbox({rel:'nofollow'}); }