From c42615534f7df94328e68da28c87bd0e253b2891 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 --- 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.2