#2066 网站中的图片附件链接,能否点击后直接在浏览器中显示,而不是下载?
This commit is contained in:
parent
5278d4dd2b
commit
1cd2984c05
|
@ -629,7 +629,7 @@ function img_thumbnails() {
|
||||||
$('.thumbnails a').colorbox({rel:'nofollow'});
|
$('.thumbnails a').colorbox({rel:'nofollow'});
|
||||||
$('.attachments').find('a').each(function(index, element) {
|
$('.attachments').find('a').each(function(index, element) {
|
||||||
var href_value = $(element).attr('href');
|
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'});
|
$(element).colorbox({rel:'nofollow'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue