Changes for page People in ErUM-Data

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

From version 29.1
edited by admin
on 2024/10/23 14:18
Change comment: There is no comment for this version
To version 29.2
edited by admin
on 2024/10/23 14:19
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,4 +1,4 @@
1 -const tabName = "research groups";
1 +const tabName = "research_groups";
2 2  const tagCols = [
3 3   ["Community", "KAT", "KET", "KfB", "KFN", "KFS", "KFSI", "KHuK", "RDS", "beyond ErUM"],
4 4   ["Experiment", "CMS", "ATLAS", "Belle2", "CTA", "Auger"],
... ... @@ -51,7 +51,7 @@
51 51   a.title = row.doc_title;
52 52   if (row.content !== "-") {
53 53   a.dataset.content = row.content;
54 - a.dataset.toggle = "popover"; //"tooltip";
54 + a.dataset.toggle = "popover";
55 55   }
56 56  
57 57   row.affiliation = a.outerHTML;
... ... @@ -71,11 +71,11 @@
71 71  
72 72  require(['jquery', 'bootstrap'], function($) {
73 73   const ttApply = () => {
74 - $(`[id='${tabName}'] [data-toggle="popover"]`).popover({
74 + $(`#${tabName} [data-toggle="popover"]`).popover({
75 75   html: true,
76 - container: "body",
76 + container: `#${tabName}`,
77 77   trigger: "hover",
78 - }) // tooltip({ html: true, placement: "right" });
78 + });
79 79   };
80 80  
81 81   document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);