diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 7f60b11b4..fe829f7a8 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1013,8 +1013,9 @@ function showNormalImage(id) { var image=$(description_images[i]); var element=$("").attr("href",image.attr('src')); image.wrap(element); + $(image).parent().colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); } - $('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); //有图片才将链接变为弹出框 + //$('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); //有图片才将链接变为弹出框 } }