Bug 42909: Use createdRow to add back suspend class

To test:
0/ APPLY PATCH
1/ View a record with some holds on it
2/ Look at the holds table ( reserve/request.pl?biblionumber=32 )
3/ Suspend at least one hold and notice the 'suspend' class on the <tr>
4/ Unsuspend the hold and notice the class is removed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit cae44451ce)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
Lucas Gass 2026-06-25 17:22:30 +00:00 committed by Baptiste Wojtkowski
parent cef40af660
commit 5a7b9dc639
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 5 additions and 0 deletions

View File

@ -1308,6 +1308,11 @@ async function load_patron_holds_table(biblio_id, split_data) {
const totalHoldsSelect = parseInt(totalHolds) + 1;
var holdsQueueTable = $(table_id).kohaTable(
{
createdRow: function (row, data, dataIndex) {
if (data.suspended) {
$(row).addClass("suspend");
}
},
language: {
infoFiltered: "",
},