Changes for page People in ErUM-Data

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

From version 28.15
edited by admin
on 2024/10/23 14:10
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,10 +48,11 @@
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 - a.title = row.doc_title;
52 - if (row.content !== "-") {
53 - a.dataset.content = row.content;
54 - a.dataset.toggle = "popover"; //"tooltip";
51 + if (row.content && row.content !== "-") {
52 + a.title = row.content;
53 + a.dataset.toggle = "tooltip";
54 + //a.dataset.placement="left";
55 + //a.dataset.html="true";
55 55   }
56 56  
57 57   row.affiliation = a.outerHTML;
... ... @@ -71,11 +71,7 @@
71 71  
72 72  require(['jquery', 'bootstrap'], function($) {
73 73   const ttApply = () => {
74 - $(`[id='${tabName}'] [data-toggle="popover"]`).popover({
75 - html: true,
76 - container: "body",
77 - trigger: "hover",
78 - }) // tooltip({ html: true, placement: "right" });
75 + $(`[id='${tabName}'] [data-toggle="tooltip"]`).tooltip({ html: true, placement: "right" });
79 79   };
80 80  
81 81   document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);