Changes for page Nice Display
Last modified by Benjamin Fischer on 2025/03/26 13:19
From version 44.6
edited by Benjamin Fischer
on 2025/03/25 17:41
on 2025/03/25 17:41
Change comment:
There is no comment for this version
To version 44.11
edited by Benjamin Fischer
on 2025/03/25 17:46
on 2025/03/25 17:46
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,8 +1,12 @@ 1 1 /*! 2 -#set( $ntrg_tabCols = [["Tags", true]] ) 3 -#set( $ntrg_tabCols = "research_groups" ) 2 +#if ( $ntrg_tagCols == $null ) 3 +#set( $ntrg_tagCols = [["Tags", true]] ) 4 +#end 5 +#if ( $ntrg_tabName == $null ) 6 +#set( $ntrg_tabName = "research_groups" ) 7 +#end 4 4 #[[*/ 5 -((ta bCols = [["Tags", true]], tabName = "research_groups") => {9 +((tagCols = [["Tags", true]], tabName = "research_groups") => { 6 6 7 7 document.observe('xwiki:livetable:loading', () => { 8 8 const mats = document.getElementById(tabName); ... ... @@ -71,7 +71,7 @@ 71 71 }); 72 72 73 73 require(['jquery', 'bootstrap'], function($) { 74 - document.styleSheets[0].insertRule(`#mainContentArea .popover {max-width: 50%;}`) 78 + 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,5 @@ 84 84 document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply); 85 85 ttApply(); 86 86 }); 87 -/* end1 */ 88 88 /* ]]# */ 89 -/* end2 */ 90 90 })($jsontool.serialize($ntrg_tabCols), $jsontool.serialize($ntrg_tabName)); 91 -/* end3 */