jpeg图片预览

This commit is contained in:
z9hang 2015-03-20 16:49:04 +08:00
parent 5e8f29eb5a
commit 27a4e462de
1 changed files with 1 additions and 1 deletions

View File

@ -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|PNG|BMP|GIF|JPG)$/.test(href_value)) {
if (/\.(jpg|png|gif|bmp|jpeg|PNG|BMP|GIF|JPG|JPEG)$/.test(href_value)) {
$(element).colorbox({rel:'nofollow'});
}