This commit is contained in:
SBD
2023-11-25 13:08:15 +03:00
parent a5cbf8c128
commit 3e88458fce

View File

@@ -65,12 +65,15 @@ function select_tab_profile (el,url,owner_type=null) {
let user_type = getInfoAboutUser() let user_type = getInfoAboutUser()
if (user_type === 'mobile') { if (user_type === 'mobile') {
open_curtain_w_btn_profile() open_curtain_w_btn_profile()
setStandartSettingsToBlockOverlay()
} else { } else {
if (!window.location.href.includes('profile')){ if (!window.location.href.includes('profile')){
open_curtain_w_btn_profile() open_curtain_w_btn_profile()
} }
} }
if (window.location.href.includes("profile")){
setStandartSettingsToBlockOverlay()
}
}, },
error: function (data){ error: function (data){
@@ -709,7 +712,7 @@ function open_overlay (curtain) {
overlay.classList.toggle('hidden') overlay.classList.toggle('hidden')
} }
} else { } else {
if (!document.querySelector(".menu_buttons.left.first.open") && document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open')){ if (!document.querySelector(".menu_buttons.left.first.open") && document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open') && !window.location.href.includes("profile")){
} else { } else {
overlay.classList.toggle("show") overlay.classList.toggle("show")
@@ -761,6 +764,7 @@ function set_curtain_z_index (curtain) {
} }
function close_open_curtain () { function close_open_curtain () {
if (getInfoAboutUser() === 'mobile' || !window.location.href.includes("profile")){
let curtains = document.querySelectorAll('.curtain.open') let curtains = document.querySelectorAll('.curtain.open')
if (curtains.length >= 2) { if (curtains.length >= 2) {
if (last_open_curtain) { if (last_open_curtain) {
@@ -784,7 +788,10 @@ function close_open_curtain (){
toggle_cut_width_curtain(curtain) toggle_cut_width_curtain(curtain)
} }
} else {
let curtain = document.querySelector('.menu_buttons.right')
open_overlay(curtain)
}
} }
function reAdressClickOnbackrground (event,el) { function reAdressClickOnbackrground (event,el) {