From 9ed876f49e8fd20a739d5d80f0bac78b24fe3611 Mon Sep 17 00:00:00 2001 From: Alessio Nava Date: Tue, 18 Jul 2017 11:04:55 +0200 Subject: [PATCH] Added support for lazyloading of images (#266) --- source/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/js/main.js b/source/js/main.js index 98e63f6..6f08ed9 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -9,13 +9,13 @@ // 对于已经包含在链接内的图片不适用lightGallery if ($(this).parent().prop("tagName") !== 'A') { - $(this).wrap(''); + $(this).wrap(''); } }); }); if (typeof lightGallery != 'undefined') { var options = { - selector: '.gallery-item', + selector: '.gallery-item' }; $('.article-entry').each(function(i, entry) { lightGallery(entry, options);