From 8e57892bf382ae8e6ac0e91ee1b3a53096a6b1e6 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 --- .../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 e7021a21e35..31f849ee78f 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.34.1