Changes for page Profile of XWikiUserSheet
Last modified by Ludovic Dubost on 2024/07/22 15:51
From version 6.1
edited by Ludovic Dubost
on 2018/07/01 11:40
on 2018/07/01 11:40
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-profile-ui/10.5]
To version 7.1
edited by Ludovic Dubost
on 2018/12/09 12:24
on 2018/12/09 12:24
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-profile-ui/10.10]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13,6 +13,7 @@ 13 13 #if($isMyProfile || $hasAdmin) 14 14 #set($discard = $categories.add({'id':'preferences', 'sheet':'XWiki.XWikiUserPreferencesSheet', 'glyphicon': 'wrench'})) 15 15 #end 16 +#set($discard = $categories.add({'id':'groups', 'sheet':'XWiki.XWikiUserMembershipSheet', 'glyphicon': 'group'})) 16 16 ## TODO: add APIs to be able to display users watchlists to admins 17 17 #if($isMyProfile && $hasWatch) 18 18 #set($discard = $categories.add({'id':'watchlist', 'sheet':'XWiki.XWikiUserWatchListSheet', 'glyphicon': 'eye'})) ... ... @@ -116,10 +116,5 @@ 116 116 <input type='hidden' name='category' value="$!{escapetool.xml($currentCategory)}" /> 117 117 #end 118 118 <div class="clearfloats"> </div> 119 - #if($request.get('xpage')) 120 - <script type="text/javascript"> 121 - document.fire('lightbox:userprofile:loaded'); 122 - </script> 123 - #end 124 124 {{/html}} 125 125 {{/velocity}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -2,9 +2,9 @@ 2 2 // Start XWiki augmentation. 3 3 Object.extend(XWiki, { 4 4 userprofile : { 5 - init : function() { 5 + init : function(container) { 6 6 this.crtCategory = ''; 7 - this.tabsContainer = $('user-vertical-menu'); 7 + this.tabsContainer = (container || $('body')).down('#user-vertical-menu'); 8 8 if (!this.tabsContainer) { 9 9 return; 10 10 } ... ... @@ -91,12 +91,14 @@ 91 91 } 92 92 }); 93 93 94 -var init = function() { 95 - XWiki.userprofile.init(); 94 +var init = function(event) { 95 + ((event && event.memo.elements) || [$('body')]).each(function(element) { 96 + XWiki.userprofile.init(element); 97 + }); 96 96 return true; 97 97 }; 98 98 (XWiki.domIsLoaded && init()) || document.observe('xwiki:dom:loaded', init); 99 -document.observe(' lightbox:userprofile:loaded', init);101 +document.observe('xwiki:dom:updated', init); 100 100 // End XWiki augmentation. 101 101 return XWiki; 102 102 }(XWiki || {}));