diff --git a/macao/assets/custom.js b/macao/assets/custom.js
index fc38ce463c4c7c6500d05e388a436fee03c18b17..076c6c56cb6ff2035d358963c92d4931f527eb77 100644
--- a/macao/assets/custom.js
+++ b/macao/assets/custom.js
@@ -12,12 +12,17 @@ $(document).ready(function() {
     $('.commentaireInfoGroup').show();
 
     // Comment popover
-    $('[spanid]').addClass('comment-trigger').popover({
-        trigger: 'click',
-        html: true,
-        content: function () {
-            return "tt" + $(this).attr('spanid');
-        }
+    $('[spanid]').addClass('comment-trigger').each(function (){
+        const spanid = $(this).attr('spanid');
+        console.log(spanid);
+        $(this).popover({
+            trigger: 'click',
+            html: true,
+            placement: 'auto',
+            content: function () {
+                return  $("[commentaireid=" + spanid + "]").html();
+            }
+        });
     });
 
     $(document).on('click', function() {