Changes for page Administration
Last modified by Leon Poon on 2025/05/12 14:26
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
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)
- 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 });