This commit is contained in:
2023-08-08 18:48:30 +03:00
parent 280ce76a8e
commit 93771ebcf7
4 changed files with 14 additions and 8 deletions

View File

@@ -98,10 +98,14 @@ function success_check_new_messages (data) {
document.querySelector(".container-messages").innerHTML = data.html; document.querySelector(".container-messages").innerHTML = data.html;
} }
} }
if (data.upd_right_panel === true){
document.querySelector(".block-list-of-users")
}
} }
if (data.required_beep === true){ if (data.required_beep === true){
const beep = new Audio('/static/sounds/beep.MP3') const beep = new Audio('/static/sounds/beep_2.mp3')
beep.play() beep.play()
} }
} }

BIN
static/sounds/beep_2.mp3 Normal file

Binary file not shown.

View File

@@ -67,11 +67,5 @@
</div> </div>
</div> </div>
<div class="block-list-of-users"> <div class="block-list-of-users">
<span class="title-list-of-users">Чаты:</span> {% include "blocks/profile/b_list_of_users_messenger.html" %}
<div class="insert_users">
{% for item in receivers %}
{% include "widgets/w_chat_right_panel_users.html" %}
{% endfor %}
</div>
</div> </div>

View File

@@ -0,0 +1,8 @@
{% load static %}
<span class="title-list-of-users">Чаты:</span>
<div class="insert_users">
{% for item in receivers %}
{% include "widgets/w_chat_right_panel_users.html" %}
{% endfor %}
</div>