This commit is contained in:
SBD
2024-01-31 17:13:15 +03:00
parent a2b5d81c98
commit a4944360a6

View File

@@ -533,9 +533,9 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
url = 'show_chat_w_user/' url = 'show_chat_w_user/'
} }
let user_type = getInfoAboutUser() let user_type = getInfoAboutUser()
if (user_type === 'mobile' || user_type === 'laptop') { // if (user_type === 'mobile' || user_type === 'laptop') {
open_curtain_w_contacts() // open_curtain_w_contacts()
} // }
data['mobile'] = getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop' data['mobile'] = getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop'
$.ajax({ $.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
@@ -563,9 +563,9 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top}) document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top})
} }
// second time beacause we need to close curtain // second time beacause we need to close curtain
if (user_type === 'mobile' || user_type === 'laptop') { // if (user_type === 'mobile' || user_type === 'laptop') {
open_curtain_w_contacts() // open_curtain_w_contacts()
} // }
// document.querySelector(".handler_curtain_left").classList.toggle("open") // document.querySelector(".handler_curtain_left").classList.toggle("open")
// document.querySelector(".handler_curtain_left").classList.toggle("close") // document.querySelector(".handler_curtain_left").classList.toggle("close")
@@ -586,7 +586,7 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
// } // }
// check state
checkStateAfterChooseContact() checkStateAfterChooseContact()
}, },