This commit is contained in:
SBD
2023-11-25 12:58:06 +03:00
parent 704b88320a
commit a5cbf8c128
2 changed files with 14 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ function select_tab_profile (el,url,owner_type=null) {
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
open_curtain_w_btn_profile()
setStandartSettingsToBlockOverlay()
} else {
if (!window.location.href.includes('profile')){
open_curtain_w_btn_profile()
@@ -788,11 +789,19 @@ function close_open_curtain (){
function reAdressClickOnbackrground (event,el) {
// let overlay = document.querySelector(".block_overlay")
let element_click = document.elementFromPoint(event.pageX, event.pageY)
if (!element_click || element_click === el){
element_click = document.querySelector(".block_overlay")
if (!window.location.href.includes("profile") || getInfoAboutUser() === 'dectop'){
let element_click = document.elementFromPoint(event.pageX, event.pageY)
if (!element_click || element_click === el){
element_click = document.querySelector(".block_overlay")
}
element_click.click()
}
element_click.click()
}
function setStandartSettingsToBlockOverlay () {
let block_overlay = document.querySelector(".block_overlay")
block_overlay.classList.remove("show")
block_overlay.classList.add("hidden")
}
// function show_header_list () {

View File

@@ -56,7 +56,7 @@
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
<div class="wrapper_main">
{% include 'blocks/b_header.html' %}s
{% include 'blocks/b_header.html' %}
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %} right" onclick="reAdressClickOnbackrground(event,this)">
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} n_profile close{% endif %}" data-name="<img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'>">