From 768d9cf4df2b97fea4fdb74cd98ef5289aabb422 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 8 Jul 2022 13:53:28 +0100 Subject: [PATCH] Bug 31028: Add filters to concerns management --- .../prog/en/modules/cataloguing/concerns.tt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt index c1e3641b56..7ba2c8e442 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt @@ -39,7 +39,11 @@

Concerns

-
+
+ Hide resolved + | Show all +
+ @@ -180,6 +184,15 @@ ] }); + $('#hideResolved').on( "click", function() { + // It would be great if we could pass null here but it gets stringified + concerns.DataTable().columns('3').search('special:undefined').draw(); + }); + + $('#showAll').on( "click", function() { + concerns.DataTable().columns('3').search('').draw(); + }); + $('#table_concerns').on( "click", '.resolve_concern', function () { var concern_id = decodeURIComponent($(this).data('concern-id')); -- 2.20.1