Changes for page People in ErUM-Data
Last modified by Benjamin Fischer on 2025/03/26 13:22
Summary
-
Objects (1 modified, 0 added, 0 removed)
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 && row.content !== "-") {51 + if (row.content) { 52 52 a.title = row.content; 53 53 a.dataset.toggle = "tooltip"; 54 54 //a.dataset.placement="left"; ... ... @@ -70,13 +70,8 @@ 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 - }; 77 - 78 - document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply); 79 - ttApply(); 73 +document.observe(`xwiki:livetable:${tabName}:displayComplete`, () => { 74 + jQuery(`[id='${tabName}'] [data-toggle="tooltip"]`).tooltip({ html: true, placement: "right" }); 80 80 }); 81 81 82 82