From 8e7bcd8fd85c48d29408c869920a343f9fe33fa2 Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 2 Dec 2023 15:31:50 +0300 Subject: [PATCH] 0.8.449 --- static/js/user_profile_2.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 5fd2e0a..094249e 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -55,12 +55,13 @@ function select_tab_profile (el,url,owner_type=null) { } document.querySelector("#ru_lang").href = confirm_url_f_lang_ru document.querySelector("#en_lang").href = confirm_url_f_lang_en - let header = document.querySelector("header") - header.scrollIntoView({ - behavior: "smooth", - block: "end", - inline:'center' - }) + // let header = document.querySelector("header") + // header.scrollIntoView({ + // behavior: "smooth", + // block: "end", + // inline:'nearest' + // }) + document.querySelector("body").scrollTop = 0 middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') { @@ -83,8 +84,7 @@ function select_tab_profile (el,url,owner_type=null) { }); } function clickONTHEAPROfileBTN (el) { - let parent = el.parentNode - let el_f_click = parent.querySelector(".text_btn_profile") + let el_f_click = el.querySelector(".text_btn_profile") el_f_click.click() }