0.0.162
This commit is contained in:
@@ -15,7 +15,7 @@ function sendMessageSocket (data) {
|
||||
|
||||
|
||||
chatSocket.onmessage = function (e) {
|
||||
const beep = new Audio('/static/sounds/beep_2.mp3')
|
||||
|
||||
let old_item_tab_user_list = inital_old_tab()
|
||||
let el_tab = old_item_tab_user_list[0]
|
||||
let old_item_tab_user = old_item_tab_user_list[1]
|
||||
@@ -35,7 +35,7 @@ chatSocket.onmessage = function (e) {
|
||||
|
||||
// update_tickets_w_manager(data,old_item_tab_user)
|
||||
//
|
||||
// update_tickets_wo_manager(data,old_item_tab_user)л
|
||||
// update_tickets_wo_manager(data,old_item_tab_user)
|
||||
|
||||
update_tickets_operations_manager(el_tab,data,old_item_tab_user,'w')
|
||||
|
||||
@@ -50,13 +50,19 @@ chatSocket.onmessage = function (e) {
|
||||
}
|
||||
} else {
|
||||
let user_id_inf_er = "Error user id is not defined"
|
||||
alert(user_id_inf_er)
|
||||
console.log(user_id_inf_er)
|
||||
// не найден user id
|
||||
}
|
||||
|
||||
} else {
|
||||
let cont_mes = document.querySelector("")
|
||||
let cont_mes_ins = document.querySelector(".info_profile")
|
||||
if (cont_mes_ins){
|
||||
cont_mes_ins.innerHTML = data.chat_html
|
||||
} else {
|
||||
let error_cont_mes_ins = "cont_mes_ins is not defined"
|
||||
console.log(error_cont_mes_ins)
|
||||
// не найден info profile
|
||||
}
|
||||
}
|
||||
// }
|
||||
// if
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
{#var user_id = {{ user.id }}#}
|
||||
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
|
||||
const chatSocket = new WebSocket(ws_url);
|
||||
const beep = new Audio('/static/sounds/beep_2.mp3')
|
||||
</script>
|
||||
|
||||
<script src='{% static "js/chat_sockets.js" %}'></script>
|
||||
|
||||
Reference in New Issue
Block a user