From 1d04e429cec10caf41d7dbaa1c55d3e3b5bda4a2 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 14 May 2024 18:18:05 +0000 Subject: [PATCH] Bug 36060: (follow-up) Remember selections when refreshing the table Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 449ce57e97..a2b540e971 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -14,9 +14,16 @@ function RefreshIssuesTable() { return this.value; }).get(); table.ajax.reload( function() { - CheckRenewCheckinBoxes(); var checkout_count = table.page.info().recordsTotal; $('.checkout_count').text(checkout_count); + renewchecked.forEach( function(item) { + $('.renew[value="'+item+'"]').prop('checked' , true ); + }); + + checkinchecked.forEach( function(item) { + $('.checkin[value="'+item+'"]').prop('checked' , true ); + }); + CheckRenewCheckinBoxes(); }); } -- 2.39.5