Changes for page Nice Display

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

From version 44.7
edited by Benjamin Fischer
on 2025/03/25 17:42
Change comment: There is no comment for this version
To version 44.4
edited by Benjamin Fischer
on 2025/03/25 17:36
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,6 +1,5 @@
1 1  /*!
2 -#set( $ntrg_tabCols = [["Tags", true]] )
3 -#set( $ntrg_tabCols = "research_groups" )
2 +#set( $ntrg_tabCols == $jsontool.serialize($ntrg_tabCols) )
4 4  #[[*/
5 5  ((tabCols = [["Tags", true]], tabName = "research_groups") => {
6 6  
... ... @@ -71,7 +71,7 @@
71 71   });
72 72  
73 73   require(['jquery', 'bootstrap'], function($) {
74 - document.styleSheets[0].insertRule(`#mainContentArea .popover {max-width: 50%;}`);
73 + document.styleSheets[0].insertRule(`#mainContentArea .popover {max-width: 50%;}`)
75 75  
76 76   const ttApply = () => {
77 77   $(`#${tabName} [data-toggle="popover"]`).popover({
... ... @@ -84,8 +84,6 @@
84 84   document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);
85 85   ttApply();
86 86   });
87 -/* end1 */
88 -/* ]]# */
89 -/* end2 */
90 -})($jsontool.serialize($ntrg_tabCols), $jsontool.serialize($ntrg_tabName));
91 -/* end3 */
86 +
87 +// ]]#
88 +})($ntrg_tabCols, $ntrg_tabName);