From a62df01ecf4c7df5a52e9befad4768d9cd7d612d Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 15 Mar 2023 23:44:30 -0500 Subject: [PATCH] Fix mute/delete chat for prev pages --- templates/chat/chat.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/chat/chat.html b/templates/chat/chat.html index 2d4be7d..4993436 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -408,7 +408,7 @@ scrollContainer($('#chat-box'), $('#loader')) {% if request.user.is_staff %} - $(".chat_remove").on("click", function() { + $(document).on("click", ".chat_remove", function() { var elt = $(this); $.ajax({ url: "{{ url('delete_chat_message') }}", @@ -431,7 +431,7 @@ }, }); }); - $(".chat_mute").on("click", function() { + $(document).on("click", ".chat_mute", function() { if (confirm("{{_('Mute this user and delete all messages?')}}")) { var elt = $(this); $.ajax({