Changes for page Nice Display

Last modified by Benjamin Fischer on 2025/03/26 13:19

From version 45.28
edited by Benjamin Fischer
on 2025/03/26 12:43
Change comment: There is no comment for this version
To version 45.25
edited by Benjamin Fischer
on 2025/03/26 12:38
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,6 +1,5 @@
1 1  (()=>{
2 2   const tabName = "research_groups";
3 - const coopDetailsLabel = "Cooperation Details";
4 4   let tagCols;
5 5  
6 6   document.observe('xwiki:livetable:loading', () => {
... ... @@ -52,7 +52,7 @@
52 52   if (row.content !== "-") {
53 53   let c = row.content;
54 54   if (row.coopDetails !== "-")
55 - c = `${c}<br/><b>${coopDetailsLabel}:</b> ${row.coopDetails}`;
54 + c = `${c}<br/><b>Cooperation Details:</b>${row.coopDetails}`;
56 56   a.dataset.content = c;
57 57   a.dataset.toggle = "popover";
58 58   }
... ... @@ -60,11 +60,9 @@
60 60  
61 61   row.coop = row.coop.replace(/\b \.\.\. \b/g, " ...<br/>");
62 62   if (row.coopDetails !== "-") {
63 - const d = new Element("div");
62 + const d = new Elemeent("div");
64 64   d.innerHTML = row.coop;
65 - d.title = coopDetailsLabel;
66 - d.dataset.content = row.coopDetails;
67 - d.dataset.toggle = "popover";
64 + d.title == row.coopDetails;
68 68   row.coop = d.outerHTML;
69 69   }
70 70