From 3771e484f9cd1d8135ec10111561f8d229cf39c0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 3 Jul 2024 07:01:08 +0100 Subject: [PATCH] Bug 37065: (follow-up) Terminology and active mixup --- .../prog/en/modules/bookings/list.tt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index 2fa1cd694ad..619397a1f63 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -44,7 +44,7 @@
- Include completed + Show expired
@@ -202,10 +202,10 @@ } ); - let filter_completed = true; + let filter_expired = true; let additional_filters = { end_date: function(){ - if ( filter_completed ) { + if ( filter_expired ) { let today = new Date(); return { ">=": today.toISOString() } } else { @@ -299,15 +299,15 @@ }] }, [], 0, additional_filters); - var txtActivefilter = _("Include completed"); - var txtInactivefilter = _("Filter completed"); - $('#completed_filter').on("click", function() { + var txtActivefilter = _("Show expired"); + var txtInactivefilter = _("Hide expired"); + $("#expired_filter").on("click", function() { if ($(this).hasClass('filtered')){ - filter_completed = false; - $(this).html(' '+txtActivefilter); + filter_expired = false; + $(this).html(' '+txtInactivefilter); } else { - filter_completed = true; - $(this).html(' '+txtInactivefilter); + filter_expired = true; + $(this).html(' '+txtActivefilter); } bookings_table.DataTable().draw(); $(this).toggleClass('filtered'); -- 2.45.2