Absolute URLs on ilustr
[redakcja.git] / src / redakcja / static / js / wiki / view_properties.js
index 7101c5c..6ae6e57 100644 (file)
                     "name": "href",
                 },
             ],
-        }
+            "tab": {"attributes": [{"name": "szer"}]},
+            "naglowek_parsza": {"attributes": [{"name": "nazwa"}]},
+            "naglowek_czytanie": {"attributes": [{"name": "nazwa"}]}
+        },
     };
 
     class PropertiesPerspective extends $.wiki.SidebarPerspective {
 
                     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');