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