diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 95b04a62ba3e1653dcb5eed75a89027a4532e0fc..fa504167e6546797a7cd57b086d0d970d0e9d0cc 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>