Bugzilla – Attachment 152786 Details for
Bug 34106
Patron search in member-search-box.inc always defaults to 'Starts with' search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34106: Update header search box searchtype when form is submitted
Bug-34106-Update-header-search-box-searchtype-when.patch (text/plain), 1.63 KB, created by
Martin Renvoize (ashimema)
on 2023-06-28 12:27:12 UTC
(
hide
)
Description:
Bug 34106: Update header search box searchtype when form is submitted
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-06-28 12:27:12 UTC
Size:
1.63 KB
patch
obsolete
>From 96864e88d95f6f4c429f7da4d43ef4d10ef4ab14 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 27 Jun 2023 14:40:59 +0000 >Subject: [PATCH] Bug 34106: Update header search box searchtype when form is > submitted > >We're updating the side menu searchtype when the search header is submitted, >we should also update the searchtype in the search header when the form is submitted > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 9cead35acc..0a603483b6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -691,6 +691,7 @@ > }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); > > $("#patron_search_form").on('submit', filter); >+ $("#patron_search_form").on('submit', update_search_type); > $(".filterByLetter").on("click",function(e){ > e.preventDefault(); > filterByFirstLetterSurname($(this).text(), true); >@@ -750,6 +751,10 @@ > } > } > >+ function update_search_type(){ >+ $("#searchtype").val($("#searchtype_filter").val()); >+ } >+ > function update_search_description(){ > var searched = $("#searchfieldstype_filter").find("option:selected").text(); > if ( $("#search_patron_filter").val() ) { >-- >2.41.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 34106
:
152604
|
152641
|
152743
|
152748
|
152785
| 152786