From 77fbffbbcbdcd74abaa0832f7ddab869be15ef86 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Mon, 5 Aug 2024 12:37:05 +0000 Subject: [PATCH] Bug 37141: (follow-up) Move filter_expired to outer scope This allows access by the bookings-tab and the expired_filter click handlers which are both required for the state change to work. Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js b/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js index 72c47c9a7e..08fcc4f6ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js +++ b/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js @@ -3,8 +3,8 @@ var bookings_table; $(document).ready(function () { // Load bookings table on tab selection + let filter_expired = true; $("#bookings-tab").on("click", function () { - let filter_expired = true; let additional_filters = { patron_id: patron_borrowernumber, end_date: function () { -- 2.39.5