文件链接却弹出图片框 bug

This commit is contained in:
lizanle 2015-12-17 09:55:02 +08:00
parent 0a3c5f6acc
commit 8d58b045f1
1 changed files with 2 additions and 1 deletions

View File

@ -969,6 +969,7 @@ function showNormalImage(id) {
var element=$("<a></a>").attr("href",image.attr('src')); var element=$("<a></a>").attr("href",image.attr('src'));
image.wrap(element); image.wrap(element);
} }
$('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); //有图片才将链接变为弹出框
} }
$('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false});
} }