0.0.153
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
function update_count_unread_messages (data) {
|
|
||||||
|
export function update_count_unread_messages (data) {
|
||||||
let list_unrd = document.querySelectorAll(".qs")
|
let list_unrd = document.querySelectorAll(".qs")
|
||||||
let i = 0
|
let i = 0
|
||||||
for (i;i < list_unrd.length;i++){
|
for (i;i < list_unrd.length;i++){
|
||||||
@@ -6,7 +7,7 @@ function update_count_unread_messages (data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function play_required_beep (data) {
|
export function play_required_beep (data) {
|
||||||
const beep = new Audio('/static/sounds/beep_2.mp3')
|
const beep = new Audio('/static/sounds/beep_2.mp3')
|
||||||
beep.play()
|
beep.play()
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
function inital_old_tab (){
|
|
||||||
|
export function inital_old_tab (){
|
||||||
let el_tab = document.querySelector(".tab_user_messanger.select")
|
let el_tab = document.querySelector(".tab_user_messanger.select")
|
||||||
let old_item_tab_user = null;
|
let old_item_tab_user = null;
|
||||||
if (el_tab !== null){
|
if (el_tab !== null){
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
function update_chat_html (data,msg_cont) {
|
|
||||||
|
export function update_chat_html (data,msg_cont) {
|
||||||
if (data.chat_html){
|
if (data.chat_html){
|
||||||
if (msg_cont !== null){
|
if (msg_cont !== null){
|
||||||
if (msg_cont.dataset['curReceiver'] === ""){
|
if (msg_cont.dataset['curReceiver'] === ""){
|
||||||
@@ -15,7 +16,7 @@ function update_chat_html (data,msg_cont) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function update_list_w_users (data,old_item_tab_user) {
|
export function update_list_w_users (data,old_item_tab_user) {
|
||||||
let list_of_users = document.querySelector(".block-list-of-users")
|
let list_of_users = document.querySelector(".block-list-of-users")
|
||||||
if (list_of_users) {
|
if (list_of_users) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
function update_tickets_operations_manager (data,old_item_tab_user,w=null,wo=null) {
|
|
||||||
|
export function update_tickets_operations_manager (data,old_item_tab_user,w=null,wo=null) {
|
||||||
let insert_type = null
|
let insert_type = null
|
||||||
if (w !== null){
|
if (w !== null){
|
||||||
insert_type = 'data.tickets_w_manager_html'
|
insert_type = 'data.tickets_w_manager_html'
|
||||||
@@ -69,7 +70,7 @@ function clear_messenger (data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_support_chat_func (data){
|
export function update_support_chat_func (data){
|
||||||
if (msg_cont !== null){
|
if (msg_cont !== null){
|
||||||
if (msg_cont.dataset['curReceiver'] === ""){
|
if (msg_cont.dataset['curReceiver'] === ""){
|
||||||
document.querySelector(".info_profile").innerHTML = data.support_chat_html
|
document.querySelector(".info_profile").innerHTML = data.support_chat_html
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
{# <script src="{% static "js/serch_town.js" %}"></script>#}
|
{# <script src="{% static "js/serch_town.js" %}"></script>#}
|
||||||
<script src="{% static "js/user_profile.js" %}"></script>
|
<script src="{% static "js/user_profile.js" %}"></script>
|
||||||
<script src="{% static "js/user_profile(boris).js" %}"></script>
|
<script src="{% static "js/user_profile(boris).js" %}"></script>
|
||||||
<script src="{% static "js/chat_socket_functions/etc_operations_for_chat_socket.js" %}"></script>
|
|
||||||
<script src="{% static "js/chat_socket_functions/inital_old_tab.js" %}"></script>
|
|
||||||
<script src="{% static "js/chat_socket_functions/update_messenger.js" %}"></script>
|
|
||||||
<script src="{% static "js/chat_socket_functions/update_tickets_operations_manager.js" %}"></script>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
<script src='{% static "js/user_profile(boris).js" %}'> </script>
|
<script src='{% static "js/user_profile(boris).js" %}'> </script>
|
||||||
{# <script src='{% static "js/chat_sockets.js" %}'></script>#}
|
{# <script src='{% static "js/chat_sockets.js" %}'></script>#}
|
||||||
|
|
||||||
|
<script type="module" src="{% static "js/chat_socket_functions/etc_operations_for_chat_socket.js" %}"></script>
|
||||||
|
<script type="module" src="{% static "js/chat_socket_functions/inital_old_tab.js" %}"></script>
|
||||||
|
<script type="module" src="{% static "js/chat_socket_functions/update_messenger.js" %}"></script>
|
||||||
|
<script type="module" src="{% static "js/chat_socket_functions/update_tickets_operations_manager.js" %}"></script>
|
||||||
<link rel="stylesheet" href="{% static 'css/ion.rangeSlider.min.css' %}">
|
<link rel="stylesheet" href="{% static 'css/ion.rangeSlider.min.css' %}">
|
||||||
<script defer src='{% static "js/check_new_messages.js" %}'></script>
|
<script defer src='{% static "js/check_new_messages.js" %}'></script>
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src='{% static "js/chat_sockets.js" %}'></script>
|
<script type="module" src='{% static "js/chat_sockets.js" %}'></script>
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
||||||
|
|||||||
Reference in New Issue
Block a user