Absolute URLs on ilustr
[redakcja.git] / src / redakcja / static / js / wiki / view_properties.js
index dde914f..6ae6e57 100644 (file)
 
                     self.doc.refreshImageGallery({
                         success: function(galleryImages) {
-                            $.each(self.doc.galleryImages, (i, imgItem) => {
+                            $.each(galleryImages, (i, imgItem) => {
                                 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');