From b3215b4482ba771ae6fc650220ae226617ad2a3f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 30 Jan 2020 09:37:55 +0000 Subject: [PATCH] Bug 23493: (RM follow-up) Let datatables calculate colspan for us Prior to this we arbitrarily set a colspan of 100 for the rowgroup header row. If we remove the td wrapper from the render function then datatables will automatically wrap the output in an appropraite td with cell with fullwidth colspan correctly set. Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 60ad01d7a3..c1ca172f33 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -600,9 +600,9 @@ $(document).ready(function() { "dataSrc": "issued_today", "startRender": function ( rows, group ) { if ( group ) { - return $('').append("" + TODAYS_CHECKOUTS + ""); + return TODAYS_CHECKOUTS; } else { - return $('').append("" + PREVIOUS_CHECKOUTS + ""); + return PREVIOUS_CHECKOUTS; } } }, -- 2.20.1