diff --git a/dist/js/demo.js b/dist/js/demo.js index 9a054b85a..ff168b580 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -416,4 +416,11 @@ return $block } + + $('.product-image-thumb').on('click', function() { + const image_element = $(this).find('img'); + $('.product-image').prop('src', $(image_element).attr('src')) + $('.product-image-thumb.active').removeClass('active'); + $(this).addClass('active'); + }); })(jQuery)