From f6b6c8a8a9b03f10c0c876002269f2ecfcf8c7eb Mon Sep 17 00:00:00 2001
From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr>
Date: Wed, 15 Jan 2025 15:00:22 +0100
Subject: [PATCH] WIP

---
 macao/assets/custom.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/macao/assets/custom.js b/macao/assets/custom.js
index 68f94af..5b04a58 100644
--- a/macao/assets/custom.js
+++ b/macao/assets/custom.js
@@ -14,7 +14,9 @@ $(document).ready(function() {
     // Comment popover
     $('[spanid]').addClass('comment-trigger').on('click', function() {
         let spanid = $(this).attr('spanid');
-        $("[commentaireid=" + spanid + "]").toggle();
+        let comment = $("[commentaireid=" + spanid + "]");
+        comment.toggle();
+
     });
 
     // Simplify th in td
-- 
GitLab