Fix for image loading.
[redakcja.git] / src / redakcja / static / js / wiki / view_properties.js
index 56bd84d..3d30fd3 100644 (file)
                     var imglist = modal.find('.modal-body');
                     imglist.html('');
                     $.each(self.doc.galleryImages, (i, imgItem) => {
-                        img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
+                        let img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
                             imglist.find('img').removeClass('active');
                             $(this).addClass('active');
                         });