From 5fb1286a1de943243e926ac921b153ec83e158b4 Mon Sep 17 00:00:00 2001 From: buttle Date: Thu, 14 Oct 2021 14:31:18 +0200 Subject: [PATCH] removes unnecessary condition --- view/common/block-layout/smartGallery.phtml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/view/common/block-layout/smartGallery.phtml b/view/common/block-layout/smartGallery.phtml index fc35be8..13d6c38 100644 --- a/view/common/block-layout/smartGallery.phtml +++ b/view/common/block-layout/smartGallery.phtml @@ -63,10 +63,7 @@ jQuery(document).ready(function() { var image = images_[i] var src_link = ''; var gallery_image = $('#_wrap').find('img[src="'+image['media_url']+'"]') - if ( !($(gallery_image).next().attr('src') == image['media_url']) ){ - $(gallery_image).closest('.brick').append(src_link) - console.log(image['media_url']) - } + $(gallery_image).closest('.brick').append(src_link) } });