From 11dd6b8223d604b6c891c9cf5e082f009bffd155 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 27 Dec 2023 11:08:09 +0000 Subject: [PATCH] Bug 35628: Add current status as a class to table rows This patch adds the current status, if there is one set, to the table rows of the concerns interface. Signed-off-by: Esther Melander Signed-off-by: Ray Delahunty Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/cataloguing/concerns.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt index 501aef8ed4..49f01ef6db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt @@ -187,7 +187,12 @@ "searchable": false, "orderable": false }, - ] + ], + createdRow: function (row, data, dataIndex) { + if ( data.status ) { + $(row).addClass(data.status.toLowerCase()); + } + }, }, table_settings, 1, additional_filters); var txtActivefilter = _("Filter resolved"); -- 2.39.5