From 829114215dd8d9559697c444fb0e159aa4e0f047 Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Tue, 14 Jan 2025 18:30:03 +0100 Subject: [PATCH] Transform th in td --- macao/assets/custom.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 11e8303..b9b295d 100644 --- a/macao/assets/custom.js +++ b/macao/assets/custom.js @@ -11,8 +11,17 @@ $(document).ready(function() { $('.commentaireInfo').prop('popover', 'true'); $('.commentaireInfoGroup').show(); + // Comment popover $('[spanid]').addClass('comment-trigger').on('click', function() { let spanid = $(this).attr('spanid'); $("[commentaireid=" + spanid + "]").toggle(); }); + + // Simplify th in td + $('th').each(function () { + // Store the current content of the <th> + const content = $(this).html(); + // Replace <th> with a <td> containing the same content + $(this).replaceWith(`<td>${content}</td>`); + }); }); -- GitLab