2 Commits

Author SHA1 Message Date
e4849ec659 0.0.356 2023-11-12 15:52:39 +03:00
88f679cd41 0.0.356 2023-11-12 15:52:32 +03:00
4 changed files with 24 additions and 24 deletions

View File

@@ -426,6 +426,10 @@
}
.block-chat.support{
height: 86vh;
}
.block-list-of-users{
width: 30%;
margin-left: 20px;
@@ -702,7 +706,7 @@
height: 40px;
background: #FFFFFF;
/*padding: 20px;*/
margin-bottom: 20px;
margin-bottom: 5px;
border-radius: 3px;
}

View File

@@ -13,7 +13,7 @@ function middleWareJS(){
let footer = document.querySelector("footer")
let body = document.querySelector("body")
if (document.querySelector(".menu_buttons.curtain.left")){
if (document.querySelector(".menu_buttons.curtain.left") || window.location.href.includes('support') || window.location.href.includes('chat')){
footer.style.display = "none"
body.style.overflow = "hidden"

View File

@@ -482,24 +482,12 @@ function selectedUserMessenger (ticket_id=null,user_id=null){
document.querySelector(".enter-message-inp").focus()
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'});
// let el = document.querySelector(".tab_user_messanger.select")
// let cont = document.querySelector(".insert_users")
// if (el && cont){
// let el_pos = el.offsetTop
// cont.scrollTop = el_pos
// cont.scrollTo({
// top: el_pos,
// behavior: "smooth"
// });
// }
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain'))
if (user_type === 'mobile' || user_type === 'laptop') {
closeCurtain('left')
} else if (!window.location.href.includes('profile')){
closeCurtain()
} else {
if (!window.location.href.includes('profile')){
closeCurtain()
}
}
},
@@ -676,10 +664,18 @@ function show_header_list () {
}
}
function closeCurtain () {
let curtain = getOpenCurtain()
if (curtain){
open_curtain(null,null,null,'close')
function closeCurtain (left,right) {
if (left){
let left = document.querySelector(".curtain.left")
open_curtain(left,null,null,'close')
} else if (right){
let right = document.querySelector(".curtain.right")
open_curtain(null,right,null,'close')
} else {
let curtain = getOpenCurtain()
if (curtain) {
open_curtain(null, null, null, 'close')
}
}
}
@@ -748,7 +744,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
} else {
let user_type = getInfoAboutUser()
if (user_type === 'mobile' || !window.location.host.includes('profile')) {
if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) {
curtain.classList.toggle("open")
curtain.classList.toggle("close")
newCurtainZIndex()

View File

@@ -14,7 +14,7 @@
<div class="name_ticket">
<span>{{ ticket.name }}</span>
</div>
<div class="{% if user.is_staff %}block-chat{% else %}block-chat width-100{% endif %}">
<div class="{% if user.is_staff %}block-chat{% else %}block-chat width-100{% endif %} support">
{% if user.is_staff or ticket.manager %}
<div class="container-header-chat">
<div class="header-chat-left-part">