Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Drop redundant JS code
Patryk Zawadzkibc1275ae3510
diff --git a/saleor/product/templates/product/details.html b/saleor/product/templates/product/details.htmlindex a44021a02f..8d36be1ce4 100644--- a/saleor/product/templates/product/details.html+++ b/saleor/product/templates/product/details.html@@ -131,30 +131,3 @@</div></div>{% endblock outercontent %}--{% block footer_scripts %}- {{ block.super }}- <script>- $(function() {- var $carousel = $('.carousel'),- $items = $('.product-gallery-item'),- $modal = $('.modal');-- $items.on('click', function(e) {- if ($('.carousel').is(':visible')) {- e.preventDefault();- }- var index = $(this).index();-- $carousel.carousel(index);- });-- $modal.on('show.bs.modal', function() {- var $img = $(this).find('.modal-body img'),- dataSrc = $img.attr('data-src');-- $img.attr('src', dataSrc);- });- });- </script>-{% endblock %}