From 7d4612bc4f60d5983f7ff6cbefc9bb1d50d2a242 Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Wed, 15 Jan 2025 21:43:41 +0100 Subject: [PATCH] Fix button play style but rollback to old comment --- macao/assets/custom.js | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 95b04a6..fa50416 100644 --- a/macao/assets/custom.js +++ b/macao/assets/custom.js @@ -8,24 +8,15 @@ $(document).ready(function() { $('.book-header').show(); $('.commentaireInfo').hide(); - // $('.commentaireInfo').prop('popover', 'auto'); - $('.commentaireInfoGroup').show(); + $('.commentaireInfo').prop('popover', 'auto'); + $('.commentaireInfoGroup').prop("hidden", false); - $('[spanid]').addClass('comment-trigger'); - - /* // Comment popover - $('[spanid]').addClass('comment-trigger').popover({ - trigger: 'click', - html: true, - content: function () { - return "tt" + $(this).attr('spanid'); - } + // Comment popover + $('[spanid]').addClass('comment-trigger').on('click', function() { + let spanid = $(this).attr('spanid'); + $("[commentaireid=" + spanid + "]").toggle(); }); - $(document).on('click', function() { - $('[spanid]').popover('hide'); - });*/ - // Simplify th in td $('th').each(function () { // Store the current content of the <th> -- GitLab