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'))
|
scrollContainer($('#chat-box'), $('#loader'))
|
||||||
|
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
$(".chat_remove").on("click", function() {
|
$(document).on("click", ".chat_remove", function() {
|
||||||
var elt = $(this);
|
var elt = $(this);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{{ url('delete_chat_message') }}",
|
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?')}}")) {
|
if (confirm("{{_('Mute this user and delete all messages?')}}")) {
|
||||||
var elt = $(this);
|
var elt = $(this);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in a new issue