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 <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Paul Derscheid 2024-08-05 12:37:05 +00:00 committed by Katrin Fischer
parent e4b77f47c4
commit 77fbffbbcb
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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 () {