Z verze
změnil(a) David Brazda
k 08.04.2021 09:26
Na verzi < 5.1 >
změnil(a) David Brazda
k 08.04.2021 09:39
< >
Popis verze: allow view právo pro XWiki.Reader

Přehled

Rozpis

XWiki.JavaScriptExtension[1]
Kód
... ... @@ -13,6 +13,16 @@
13 13   if (img_alt) {
14 14   $(this).parents("a").attr("data-title", img_alt);
15 15   }
16 + //fig and figcaption handling
17 + if (!jQuery(this).parent().is('figure')) {
18 + jQuery(this).wrap($('<figure/>', {
19 + 'class': 'image'
20 + }));
21 + if (img_alt) {
22 + $(this).after($('<figcaption/>').append(img_alt));
23 + }
24 + }
16 16   }); //each function
17 17   }); //dom updated
18 18  }); //require
28 +
Jméno
... ... @@ -1,1 +1,1 @@
1 -add lightbox again after save
1 +update lightbox when loaded and after save