Bug 38116: Empty column filters

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-01-01 19:26:59 +01:00 committed by Katrin Fischer
parent 1b43d88494
commit 4394e02a4e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 0 deletions

View File

@ -862,6 +862,9 @@
function filter() {
let parent_block = $("#[% search_results_block_id | html %]");
let patron_search_form = get_patron_search_form();
// Empty header filters. Do not need to deal with selects.
let table_node = $("#[% table_id | html %]");
table_node.find('thead tr:eq(1) th input').val("");
[% IF redirect_if_attribute_equal %]
let filter = patron_search_form.find(".search_patron_filter").val();
if ( filter ) {