Changes for page Nice Display
Last modified by Benjamin Fischer on 2025/03/26 13:19
From version 45.25
edited by Benjamin Fischer
on 2025/03/26 12:38
on 2025/03/26 12:38
Change comment:
There is no comment for this version
To version 45.26
edited by Benjamin Fischer
on 2025/03/26 12:43
on 2025/03/26 12:43
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,5 +1,6 @@ 1 1 (()=>{ 2 2 const tabName = "research_groups"; 3 + const coopDetailsLabel = "Cooperation Details"; 3 3 let tagCols; 4 4 5 5 document.observe('xwiki:livetable:loading', () => { ... ... @@ -51,7 +51,7 @@ 51 51 if (row.content !== "-") { 52 52 let c = row.content; 53 53 if (row.coopDetails !== "-") 54 - c = `${c}<br/><b> CooperationDetails:</b>${row.coopDetails}`;55 + c = `${c}<br/><b>${coopDetailsLabel}:</b> ${row.coopDetails}`; 55 55 a.dataset.content = c; 56 56 a.dataset.toggle = "popover"; 57 57 } ... ... @@ -61,7 +61,9 @@ 61 61 if (row.coopDetails !== "-") { 62 62 const d = new Elemeent("div"); 63 63 d.innerHTML = row.coop; 64 - d.title == row.coopDetails; 65 + d.title = coopDetailsLabel; 66 + a.dataset.content = row.coopDetails; 67 + a.dataset.toggle = "popover"; 65 65 row.coop = d.outerHTML; 66 66 } 67 67