0.8.390
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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" %}'>">
|
||||
|
||||
Reference in New Issue
Block a user