https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40656 --- Comment #2 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 185469 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185469&action=edit Bug 40656: (follow-up) Create reusable additional filters library for DataTables This follow-up patch extracts the filter functionality into a reusable library: - Create AdditionalFilters.js library with chainable API for filter functionality - Rename table-filters.inc to additional-filters.inc for clarity - Refactor to use explicit element IDs instead of interpolation for better greppability (filter-expired vs filter-${id}) - Include proper cleanup methods (destroy) for memory management The library provides a fluent API: AdditionalFilters.init(['filter-expired', 'filter-cancelled']) .onChange((filters, { anyFiltersApplied }) => { ... }) .build({ status: ({ filters, isNotApplied }) => ... }); Test plan remains identical except for applying both patches on step 1. -- You are receiving this mail because: You are watching all bug changes.