Bugzilla – Attachment 194507 Details for
Bug 41995
Autocomplete for syspref search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41995: Add autocomplete on the admin home page
04e7c46.patch (text/plain), 1.66 KB, created by
Jonathan Druart
on 2026-03-05 13:03:32 UTC
(
hide
)
Description:
Bug 41995: Add autocomplete on the admin home page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-03-05 13:03:32 UTC
Size:
1.66 KB
patch
obsolete
>From 04e7c46d5584216ad088c83a048d2fa024f75648 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 Mar 2026 14:03:15 +0100 >Subject: [PATCH] Bug 41995: Add autocomplete on the admin home page > >--- > .../intranet-tmpl/prog/en/modules/admin/admin-home.tt | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >index 1bf98b85c29..5d295bcd86d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >@@ -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' %] >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41995
:
194492
|
194498
|
194501
|
194507
|
194508
|
194509