Changes for page Nice Display

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

From version 45.14
edited by Benjamin Fischer
on 2025/03/26 10:49
Change comment: There is no comment for this version
To version 45.18
edited by Benjamin Fischer
on 2025/03/26 10:59
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,6 +1,6 @@
1 -/*!
2 -#[[*/
3 -((tagCols = [["Tags", true]], tabName = "research_groups") => {
1 +(()=>{
2 + const tabName = "research_groups";
3 + let tagCols;
4 4  
5 5   document.observe('xwiki:livetable:loading', () => {
6 6   const mats = document.getElementById(tabName);
... ... @@ -8,6 +8,7 @@
8 8  
9 9   // coulmn data sources
10 10   const conf = JSON.parse(mats.dataset.settings);
11 + tagCols = (conf.columnDescriptors.tags ?? {aux: []}).aux ?? [["Tags", true]];
11 11   tagCols.forEach(([name], i) => {
12 12   const cn = `tags-${i}`;
13 13   conf.columns.splice(conf.columns.indexOf("tags"), 1, cn);
... ... @@ -82,5 +82,4 @@
82 82   document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);
83 83   ttApply();
84 84   });
85 -/* ]]# */
86 -})($jsontool.serialize($ntrg_tagCols), $jsontool.serialize($ntrg_tabName));
86 +})();
Parse content
... ... @@ -1,1 +1,1 @@
1 -Yes
1 +No