From e1d6336d07593289a4070798e7f89692b4676985 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 4 Oct 2024 12:33:00 +0000 Subject: [PATCH] Bug 38071: Apply kohaTableToggleClearFilter logic to patrons table Same reason as the holdings table, this table is initialized at a later time --- .../prog/en/includes/patron-search.inc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 5320efe0966..e55f3931357 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -716,16 +716,17 @@ 'lengthMenu': [aLengthMenu, aLengthMenuLabel], "pagingType": 'full_numbers', "pageLength": [% Koha.Preference('PatronsPerPage') | html %], - [% IF sticky_header %] "initComplete": function(settings, json) { - $("#[% sticky_header | html %]").show(); - Sticky = $("#[% sticky_header | html %]"); - Sticky.hcSticky({ - stickTo: "#[% sticky_to | html %]", - stickyClass: "floating" - }); + $(this).kohaTableToggleClearFilter(settings); + [% IF sticky_header %] + $("#[% sticky_header | html %]").show(); + Sticky = $("#[% sticky_header | html %]"); + Sticky.hcSticky({ + stickTo: "#[% sticky_to | html %]", + stickyClass: "floating" + }); + [% END %] }, - [% END %] fixedHeader: false, }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); -- 2.43.0