Compare commits
2 Commits
f97eeb83c2
...
e4849ec659
| Author | SHA1 | Date | |
|---|---|---|---|
| e4849ec659 | |||
| 88f679cd41 |
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user