From 41254a1b64f134ed87c2cd52241c0f5995ef8c4d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Mar 2024 15:38:18 +0100 Subject: [PATCH] Bug 36334: Remove unnecessary JS code from member.tt This was initially written to set the input/select in the form in the left side of the main patron search page. But this is now done in patron-search.inc: koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc: I don't see how/when this code is still used. Additionally: #searchmember_filter => does not exist, it's .search_patron_filter $("searchfieldstype_filter").val("[% searchfieldstype | html %]"); => Not a valid selector Signed-off-by: Pedro Amorim Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/member.tt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index e7021a21e3..31f849ee78 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -291,22 +291,6 @@ } }); }); - - [% IF searchmember %] - $("#searchmember_filter").val("[% searchmember | html %]"); - [% END %] - [% IF searchfieldstype %] - $("searchfieldstype_filter").val("[% searchfieldstype | html %]"); - [% END %] - [% IF searchtype %] - $("#searchtype_filter option[value='[% searchtype | html %]']").prop("selected", true); - [% END %] - [% IF categorycode_filter %] - $("#categorycode_filter").val("[% categorycode_filter | html %]"); - [% END %] - [% IF branchcode_filter %] - $("#branchcode_filter").val("[% branchcode_filter | html %]"); - [% END %] }); function patronListAdd(){ -- 2.39.5