Bug 41995: Add autocomplete on the admin home page

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-03-05 14:03:15 +01:00 committed by Pedro Amorim
parent c9cfa985b6
commit 061cc915ad
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,7 @@
<h4><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></h4>
<p>Manage system preferences like MARC flavor, date format, administrator email, and templates.</p>
<input type="hidden" name="op" value="search" />
<input type="text" name="searchfield" value="[% searchfield | html %]" />
<input type="text" id="syspref-searchfield-main" name="searchfield" value="[% searchfield | html %]" />
<input type="submit" name="ok" class="btn btn-primary" value="Search" />
</fieldset>
</form>
@ -325,4 +325,12 @@
</div>
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE "datatables.inc" %]
<script>
$(document).ready(function () {
syspref_autocomplete($("#syspref-searchfield-main"));
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]