X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6b6ff36189e97efb3b463643018806e9ff8e14a8..f01db0e7ea781ecc960673271a861523638393cc:/src/redakcja/static/js/wiki/view_properties.js diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 7101c5cf..6ae6e571 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -35,7 +35,10 @@ "name": "href", }, ], - } + "tab": {"attributes": [{"name": "szer"}]}, + "naglowek_parsza": {"attributes": [{"name": "nazwa"}]}, + "naglowek_czytanie": {"attributes": [{"name": "nazwa"}]} + }, }; class PropertiesPerspective extends $.wiki.SidebarPerspective { @@ -168,7 +171,7 @@ self.doc.refreshImageGallery({ success: function(galleryImages) { - $.each(self.doc.galleryImages, (i, imgItem) => { + $.each(galleryImages, (i, imgItem) => { 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');