From 8784c7cec606592e65e06d5d2c52724e4b5d4d74 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Fri, 26 Feb 2016 16:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E9=93=BE=E6=8E=A5=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}); //有图片才将链接变为弹出框 } }