https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40656 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185469|0 |1 is obsolete| | --- Comment #5 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 185861 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185861&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. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.