From 22bbf17ea75a445ad718a1a7198ee3b57f3907c3 Mon Sep 17 00:00:00 2001 From: Chang Yu-heng Date: Tue, 13 Oct 2015 22:41:18 +0800 Subject: [PATCH] Enable Fancybox image gallery --- source/js/fancy-box.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/js/fancy-box.js b/source/js/fancy-box.js index 3a6511f9f..7f5a01ce7 100644 --- a/source/js/fancy-box.js +++ b/source/js/fancy-box.js @@ -8,6 +8,7 @@ $(document).ready(function() { $imageWrapLink = $image.wrap('').parent('a'); } $imageWrapLink.addClass('fancybox'); + $imageWrapLink.attr('rel', 'group'); if ($image.attr("alt")) { $imageWrapLink.append('
' + $image.attr("alt") + '
'); $imageWrapLink.attr("title",$image.attr("alt")); //make sure img title tag will show correctly in fancybox