From cd8b59e225270fd92ad58c2a69f507153403cb9c Mon Sep 17 00:00:00 2001 From: borissedw Date: Thu, 17 Aug 2023 18:00:24 +0300 Subject: [PATCH] 0.0.153 --- .../chat_socket_functions/etc_operations_for_chat_socket.js | 5 +++-- static/js/chat_socket_functions/inital_old_tab.js | 3 ++- static/js/chat_socket_functions/update_messenger.js | 5 +++-- .../update_tickets_operations_manager.js | 5 +++-- templates/pages/p_results_find_route.html | 4 ---- templates/pages/profile/p_user_profile.html | 5 ++++- templates/tb_base.html | 2 +- 7 files changed, 16 insertions(+), 13 deletions(-) diff --git a/static/js/chat_socket_functions/etc_operations_for_chat_socket.js b/static/js/chat_socket_functions/etc_operations_for_chat_socket.js index 0195425..7031f4c 100644 --- a/static/js/chat_socket_functions/etc_operations_for_chat_socket.js +++ b/static/js/chat_socket_functions/etc_operations_for_chat_socket.js @@ -1,4 +1,5 @@ -function update_count_unread_messages (data) { + +export function update_count_unread_messages (data) { let list_unrd = document.querySelectorAll(".qs") let i = 0 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') beep.play() } \ No newline at end of file diff --git a/static/js/chat_socket_functions/inital_old_tab.js b/static/js/chat_socket_functions/inital_old_tab.js index 6bc6614..c3a89c0 100644 --- a/static/js/chat_socket_functions/inital_old_tab.js +++ b/static/js/chat_socket_functions/inital_old_tab.js @@ -1,4 +1,5 @@ -function inital_old_tab (){ + +export function inital_old_tab (){ let el_tab = document.querySelector(".tab_user_messanger.select") let old_item_tab_user = null; if (el_tab !== null){ diff --git a/static/js/chat_socket_functions/update_messenger.js b/static/js/chat_socket_functions/update_messenger.js index 44f52bb..cce7a21 100644 --- a/static/js/chat_socket_functions/update_messenger.js +++ b/static/js/chat_socket_functions/update_messenger.js @@ -1,4 +1,5 @@ -function update_chat_html (data,msg_cont) { + +export function update_chat_html (data,msg_cont) { if (data.chat_html){ if (msg_cont !== null){ 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") if (list_of_users) { diff --git a/static/js/chat_socket_functions/update_tickets_operations_manager.js b/static/js/chat_socket_functions/update_tickets_operations_manager.js index 4c5cfdf..1560dc1 100644 --- a/static/js/chat_socket_functions/update_tickets_operations_manager.js +++ b/static/js/chat_socket_functions/update_tickets_operations_manager.js @@ -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 if (w !== null){ 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.dataset['curReceiver'] === ""){ document.querySelector(".info_profile").innerHTML = data.support_chat_html diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index b56bff0..db7d4b8 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -9,10 +9,6 @@ {# #} - - - - {% endblock %} diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index 2b46d78..e6b192a 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -10,7 +10,10 @@ {# #} - + + + + diff --git a/templates/tb_base.html b/templates/tb_base.html index 5d6c73a..81bd254 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -16,7 +16,7 @@ - +