From 5a7b9dc639bcf4c3f0d3fe2a811c04530edab031 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 25 Jun 2026 17:22:30 +0000 Subject: [PATCH] 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 4/ Unsuspend the hold and notice the class is removed Signed-off-by: David Nind Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass (cherry picked from commit cae44451ce84d60b7cfd280ee0c221a0273f4e1e) Signed-off-by: Baptiste Wojtkowski --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index f6188e076f..ee9d7e4e11 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -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: "", },