5
This commit is contained in:
@@ -562,6 +562,11 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
|
||||
let top = document.querySelector(".tab_user_messanger.select").offsetTop
|
||||
document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top})
|
||||
}
|
||||
// second time beacause we need to close curtain
|
||||
if (user_type === 'mobile' || user_type === 'laptop') {
|
||||
open_curtain_w_contacts()
|
||||
}
|
||||
|
||||
// document.querySelector(".handler_curtain_left").classList.toggle("open")
|
||||
// document.querySelector(".handler_curtain_left").classList.toggle("close")
|
||||
// if (getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop'){
|
||||
@@ -582,7 +587,7 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
|
||||
|
||||
|
||||
|
||||
|
||||
checkStateAfterChooseContact()
|
||||
|
||||
},
|
||||
error: function (data){
|
||||
@@ -593,6 +598,14 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
|
||||
});
|
||||
}
|
||||
|
||||
function checkStateAfterChooseContact () {
|
||||
if (document.querySelector('.menu_buttons.curtain.left.open')){
|
||||
open_curtain_w_contacts()
|
||||
}
|
||||
if (document.querySelector('.block_overlay.show')){
|
||||
setStandartSettingsToBlockOverlay()
|
||||
}
|
||||
}
|
||||
|
||||
function sendMessage(id_ticket=null,sender,receiver,files=null){
|
||||
// import {sendMessageSocket} from "./chat_sockets";
|
||||
|
||||
Reference in New Issue
Block a user