This commit is contained in:
2023-11-06 14:10:17 +03:00
parent 93cf3aa695
commit 3aa4b774bd
6 changed files with 40 additions and 9 deletions

View File

@@ -58,6 +58,10 @@ function select_tab_profile (el,url,owner_type=null) {
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
closeCurtain()
} else {
if (!window.location.href.includes('profile')){
closeCurtain()
}
}
},
@@ -659,6 +663,7 @@ function closeCurtain () {
function open_curtain (left=null,right=null,overlay=null,close=null){
let page_profile = true
let curtain_name = ''
let curtain = ''
if (left || right){
@@ -686,13 +691,16 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
curtain.classList.add("close")
let overlay = document.querySelector(".block_overlay")
overlay.classList.add('hidden')
overlay.classList.remove('show')
} else {
if (overlay){
overlay.classList.toggle("hidden")
overlay.classList.toggle("show")
} else {
let overlay = document.querySelector(".block_overlay")
if (overlay){
overlay.classList.toggle("hidden")
overlay.classList.toggle("show")
}
}