Changes for page Administration

Last modified by Leon Poon on 2025/05/12 14:26

From version 5.1
edited by Leon Poon
on 2020/12/11 06:49
Change comment: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/11.10.12]
To version 2.1
edited by Leon Poon
on 2019/04/20 06:00
Change comment: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/11.2]

Summary

Details

Page properties
Content
... ... @@ -16,9 +16,6 @@
16 16  ##
17 17  ## Admin menu map
18 18  ##
19 -## displayInSection: menu.name | sectionOrder: 200 | page: Menu.MenuConfigurationSection
20 -## displayInSection: panels.applications | sectionOrder: 400 | page: PanelsCode.ApplicationsPanelConfigurable
21 -## displayInSection: panels.navigation | sectionOrder: 500 | page: PanelsCode.NavigationConfigurationSection
22 22  #set($adminMenu = [
23 23   {
24 24   'id' : 'lf',
... ... @@ -26,8 +26,8 @@
26 26   'displayBeforeCategory': 'content',
27 27   'children': [
28 28   {'id' : 'Themes', 'perSpace' : true, 'order' : 100},
29 - {'id' : 'Panels.PanelWizard', 'perSpace' : true, 'order' : 300},
30 - {'id' : 'Presentation', 'perSpace' : true, 'order' : 600}
26 + {'id' : 'Panels.PanelWizard', 'perSpace' : true, 'order' : 200},
27 + {'id' : 'Presentation', 'perSpace' : true, 'order' : 300}
31 31   ]
32 32   },
33 33   {
... ... @@ -234,11 +234,8 @@
234 234   {{html clean="false"}}
235 235   <div id="$!options.id" class="panel-group $!options.cssClass" role="tablist" aria-multiselectable="true">
236 236   <div class="panel xform">
237 - <label for="adminsearchmenu" class="hidden">$services.localization.render('search')</label>
238 - <input type="text" class="form-control panel-group-filter" autocomplete="off" id="adminsearchmenu"
239 - placeholder="$escapetool.xml($services.localization.render('administration.menu.search.hint'))"
240 - ## Disable the search input initially until the JavaScript code that handles the search is ready.
241 - disabled="disabled" />
234 + <input type="text" class="form-control panel-group-filter" autocomplete="off"
235 + placeholder="$escapetool.xml($services.localization.render('administration.menu.search.hint'))" />
242 242   </div>
243 243   #foreach ($item in $menu)
244 244   #verticalNavigationItem($item $options)
... ... @@ -290,7 +290,7 @@
290 290  ## Administration Sheet, used to display a common UI for some wiki features (presentation, users,
291 291  ## groups, rights etc.) at global / space level and also for several applications.
292 292  ##**************************************************************************************************
293 -#if($xcontext.action == 'view' && "$!request.viewer" == '')
287 +#if($xcontext.action == 'view')
294 294   $response.sendRedirect($xwiki.getURL($doc.getFullName(), 'admin', $request.getQueryString()))##
295 295  #else
296 296   $xwiki.jsx.use('XWiki.AdminSheet')##
XWiki.JavaScriptExtension[0]
Code
... ... @@ -3,8 +3,6 @@
3 3   $(document).on('click', '.admin-menu a.panel-heading', function(event) {
4 4   event.preventDefault();
5 5   });
6 - // Mark the administration menu as ready for user interaction.
7 - $('.admin-menu').attr('data-ready', true);
8 8  });
9 9  
10 10  /**
... ... @@ -62,7 +62,5 @@
62 62   var text = $(this).val().toLowerCase();
63 63   // Schedule a new filter operation.
64 64   timeoutId = setTimeout($.proxy(filterPanelGroup, panelGroup, text), 500);
65 -
66 - // Finally, enable the search input.
67 - }).prop('disabled', false);
63 + });
68 68  });