Changes for page People in ErUM-Data

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

From version 28.2
edited by admin
on 2024/10/23 12:56
Change comment: There is no comment for this version
To version 28.3
edited by admin
on 2024/10/23 12:57
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -6,7 +6,7 @@
6 6  ]
7 7  
8 8  document.observe('xwiki:livetable:loading', () => {
9 - const mats = document.getElementById(tagName);
9 + const mats = document.getElementById(tabName);
10 10  
11 11   // coulmn data sources
12 12   const conf = JSON.parse(mats.dataset.settings);
... ... @@ -28,7 +28,7 @@
28 28   );
29 29  
30 30   // handle clicks for tags
31 - document.getElementById(`${tagName}-display`).addEventListener("click", ev => {
31 + document.getElementById(`${tabName}-display`).addEventListener("click", ev => {
32 32   if (ev.button) return; // only left click
33 33   if (ev.target.nodeName !== "SPAN") return;
34 34   if (!ev.target.classList.contains("ltTag")) return;
... ... @@ -44,7 +44,7 @@
44 44   })
45 45  });
46 46  
47 -document.observe(`xwiki:livetable:${tagName}:receivedEntries`, ({memo: {data}}) => {
47 +document.observe(`xwiki:livetable:${tabName}:receivedEntries`, ({memo: {data}}) => {
48 48   debugger;
49 49   return;
50 50   for (const row of data.rows) {