|
Lines 4-12
var bookings_table;
Link Here
|
| 4 |
$(document).ready(function () { |
4 |
$(document).ready(function () { |
| 5 |
// Determine whether we have a filtered list |
5 |
// Determine whether we have a filtered list |
| 6 |
let filter_expired = $("#expired_filter").hasClass("filtered"); |
6 |
let filter_expired = $("#expired_filter").hasClass("filtered"); |
| 7 |
|
7 |
// Load bookings table on page load |
|
|
8 |
if (window.location.hash === "#bookings_panel") { |
| 9 |
loadBookingsTable(); |
| 10 |
} |
| 8 |
// Load bookings table on tab selection |
11 |
// Load bookings table on tab selection |
| 9 |
$("#bookings-tab").on("click", function () { |
12 |
$("#bookings-tab").on("click", function () { |
|
|
13 |
loadBookingsTable(); |
| 14 |
}); |
| 15 |
|
| 16 |
function loadBookingsTable() { |
| 10 |
let additional_filters = { |
17 |
let additional_filters = { |
| 11 |
patron_id: patron_borrowernumber, |
18 |
patron_id: patron_borrowernumber, |
| 12 |
end_date: function () { |
19 |
end_date: function () { |
|
Lines 131-137
$(document).ready(function () {
Link Here
|
| 131 |
additional_filters |
138 |
additional_filters |
| 132 |
); |
139 |
); |
| 133 |
} |
140 |
} |
| 134 |
}); |
141 |
} |
| 135 |
|
142 |
|
| 136 |
var txtActivefilter = __("Show expired"); |
143 |
var txtActivefilter = __("Show expired"); |
| 137 |
var txtInactivefilter = __("Hide expired"); |
144 |
var txtInactivefilter = __("Hide expired"); |
| 138 |
- |
|
|