Fix mute/delete chat for prev pages
This commit is contained in:
parent
03cd608b9d
commit
a62df01ecf
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue