From f5af75cdc6b8cc7edfab3b2ac760834885f8c8a0 Mon Sep 17 00:00:00 2001 From: skobkin Date: Wed, 19 Mar 2014 18:49:09 -0700 Subject: [PATCH] Image grouping for fancybox galleries. --- chrome_point_plus/js/point-plus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 4bed66e..8a9d7b6 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -4,7 +4,11 @@ $(document).ready(function() { // Fancybox // Images if (options.option_fancybox_images == true) { - // TODO: group images to the galeries + // Linking images in posts to the galleries + $('.post-content .text').each(function(idxPost){ + $(this).find('a.postimg:not(.youtube)').attr('rel', 'post' + idxPost); + }); + // Init fancybox $('.postimg:not(.youtube)').fancybox(); } // Videos