From: Radek Czajka Date: Thu, 28 Sep 2023 10:32:40 +0000 (+0200) Subject: Fix for image loading. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/e6c778f6e92e584815a14d3e6a31a03a5e2ab7e1?ds=sidebyside Fix for image loading. --- diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 56bd84d3..3d30fd32 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -163,7 +163,7 @@ var imglist = modal.find('.modal-body'); imglist.html(''); $.each(self.doc.galleryImages, (i, imgItem) => { - img = $("").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() { + let img = $("").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() { imglist.find('img').removeClass('active'); $(this).addClass('active'); });