diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index cf73848..0a3481b 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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 () { diff --git a/templates/tb_base.html b/templates/tb_base.html index 2d21efc..72961c2 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -56,7 +56,7 @@
- {% include 'blocks/b_header.html' %}s + {% include 'blocks/b_header.html' %}