Changes for page Industry meets ErUM-Data

Last modified by Benjamin Fischer on 2025/03/26 10:08

From version 28.9
edited by admin
on 2024/10/23 13:51
Change comment: There is no comment for this version
To version 28.13
edited by admin
on 2024/10/23 14:00
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -48,7 +48,7 @@
48 48   for (const row of data.rows) {
49 49   const a = new Element("a", { href: row.URL });
50 50   a.innerHTML = row.affiliation_value.split("\n").map((a, i) => i ? a : `<b class="wikiexternallink">${a}</b>`).join("<br/>");
51 - if (row.content) {
51 + if (row.content && row.content !== "-") {
52 52   a.title = row.content;
53 53   a.dataset.toggle = "tooltip";
54 54   //a.dataset.placement="left";
... ... @@ -70,5 +70,14 @@
70 70   }
71 71  });
72 72  
73 +require(['jquery', 'bootstrap'], function($) {
74 + const ttApply = () => {
75 + $(`[id='${tabName}'] [data-toggle="tooltip"]`).tooltip({ html: true, placement: "right" });
76 + };
73 73  
78 + document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);
79 + ttApply();
80 +});
74 74  
82 +
83 +