From b232e04f5358764bd3a6102d6c40da1c0d085edc 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 cc23ea4c3d..d9014ef618 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