Fixed fancybox for #posts (comments excluded)

This commit is contained in:
Alexey Skobkin 2014-11-15 05:49:53 +04:00
parent 8d1222766c
commit 599ccc551c
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,8 @@ $(document).ready(function() {
} }
// Posts // Posts
if (options.option_fancybox_posts == true) { 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 maxWidth: 780
}); });
} }

View file

@ -30,7 +30,7 @@
</div> </div>
<div class="option"> <div class="option">
<input type="checkbox" id="option-fancybox-posts"><label for="option-fancybox-posts">Use for post links (including comments)</label> <input type="checkbox" id="option-fancybox-posts"><label for="option-fancybox-posts">Use for post links</label>
</div> </div>
</div> </div>