From 10eacc006661779a5bea51ff011080d535e8c446 Mon Sep 17 00:00:00 2001 From: Simon Wörner Date: Mon, 11 Sep 2017 15:55:26 +0200 Subject: fix: only enable fancybox on post content (#3) This fixes problems when the license contains images. These are opened with fancybox instead of open the license link. --- src/js/even.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/even.js b/src/js/even.js index 6aef540..4ebe165 100644 --- a/src/js/even.js +++ b/src/js/even.js @@ -112,7 +112,7 @@ Even.toc = function () { Even.fancybox = function () { if ($.fancybox) { - $('.post').each(function () { + $('.post-content').each(function () { $(this).find('img').each(function () { $(this).wrap(``) }) -- cgit v1.2.3