This commit is contained in:
2023-08-18 12:42:36 +03:00
parent cd8b59e225
commit 393d2de7bc
8 changed files with 194 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
export function update_count_unread_messages (data) {
function update_count_unread_messages (data) {
let list_unrd = document.querySelectorAll(".qs")
let i = 0
for (i;i < list_unrd.length;i++){
@@ -7,7 +7,7 @@ export function update_count_unread_messages (data) {
}
}
export function play_required_beep (data) {
function play_required_beep (data) {
const beep = new Audio('/static/sounds/beep_2.mp3')
beep.play()
}

View File

@@ -1,5 +1,5 @@
export function inital_old_tab (){
function inital_old_tab (){
let el_tab = document.querySelector(".tab_user_messanger.select")
let old_item_tab_user = null;
if (el_tab !== null){

View File

@@ -1,5 +1,5 @@
export function update_chat_html (data,msg_cont) {
function update_chat_html (data,msg_cont) {
if (data.chat_html){
if (msg_cont !== null){
if (msg_cont.dataset['curReceiver'] === ""){
@@ -16,7 +16,7 @@ export function update_chat_html (data,msg_cont) {
}
export function update_list_w_users (data,old_item_tab_user) {
function update_list_w_users (data,old_item_tab_user) {
let list_of_users = document.querySelector(".block-list-of-users")
if (list_of_users) {

View File

@@ -1,5 +1,5 @@
export function update_tickets_operations_manager (data,old_item_tab_user,w=null,wo=null) {
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'
@@ -70,7 +70,7 @@ function clear_messenger (data) {
}
}
export function update_support_chat_func (data){
function update_support_chat_func (data){
if (msg_cont !== null){
if (msg_cont.dataset['curReceiver'] === ""){
document.querySelector(".info_profile").innerHTML = data.support_chat_html