From 599ccc551cdb5908f18cb8d5eaa83fb546dfb2ef Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 15 Nov 2014 05:49:53 +0400 Subject: [PATCH] Fixed fancybox for #posts (comments excluded) --- chrome_point_plus/js/point-plus.js | 3 ++- chrome_point_plus/options.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 97fe039..563fe4e 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -36,7 +36,8 @@ $(document).ready(function() { } // Posts if (options.option_fancybox_posts == true) { - $('.post-id a').attr('data-fancybox-type', 'iframe').fancybox({ + // Excluding some sort of piece-of-shit makeup + $('.post-id a').not('#comments .post-id a, #top-post .post-id a').attr('data-fancybox-type', 'iframe').fancybox({ maxWidth: 780 }); } diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index cd26adb..2a6d5b1 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -30,7 +30,7 @@
- +