diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 11e83034249c7a7fee035568c57ca40573391cc5..b9b295df575a086b64b2ab9613a157396785e0af 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>`); + }); });