Changes for page Material Collection

Last modified by Judith Steinfeld on 2025/06/03 11:13

From version 55.18
edited by Benjamin Fischer
on 2024/10/28 13:39
Change comment: There is no comment for this version
To version 55.19
edited by Benjamin Fischer
on 2024/10/28 13:40
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -66,7 +66,7 @@
66 66   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
67 67   if (icon) {
68 68   const s = a.ownerDocument.createElement("span");
69 - s.textContent = "";
69 + s.appendChild(a.ownerDocument.createElement("wbr"));
70 70   s.setAttribute("class", `fa fa-${icon}`);
71 71   s.setAttribute("style", "padding-right: .3em;");
72 72   a.insertBefore(s, a.firstChild);