Changes for page Administration

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

From version 3.1
edited by Leon Poon
on 2019/06/16 14:44
Change comment: Install extension [org.xwiki.platform:xwiki-platform-administration-ui/11.4]
To 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]

Summary

Details

Page properties
Content
... ... @@ -236,7 +236,9 @@
236 236   <div class="panel xform">
237 237   <label for="adminsearchmenu" class="hidden">$services.localization.render('search')</label>
238 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'))" />
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" />
240 240   </div>
241 241   #foreach ($item in $menu)
242 242   #verticalNavigationItem($item $options)
... ... @@ -288,7 +288,7 @@
288 288  ## Administration Sheet, used to display a common UI for some wiki features (presentation, users,
289 289  ## groups, rights etc.) at global / space level and also for several applications.
290 290  ##**************************************************************************************************
291 -#if($xcontext.action == 'view')
293 +#if($xcontext.action == 'view' && "$!request.viewer" == '')
292 292   $response.sendRedirect($xwiki.getURL($doc.getFullName(), 'admin', $request.getQueryString()))##
293 293  #else
294 294   $xwiki.jsx.use('XWiki.AdminSheet')##
XWiki.JavaScriptExtension[0]
Code
... ... @@ -3,6 +3,8 @@
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);
6 6  });
7 7  
8 8  /**
... ... @@ -60,5 +60,7 @@
60 60   var text = $(this).val().toLowerCase();
61 61   // Schedule a new filter operation.
62 62   timeoutId = setTimeout($.proxy(filterPanelGroup, panelGroup, text), 500);
63 - });
65 +
66 + // Finally, enable the search input.
67 + }).prop('disabled', false);
64 64  });