From 2fb00ee112fb05a39e665bb4f51ae39b29294699 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 29 Nov 2023 15:14:20 +0300 Subject: [PATCH] 0.8.413 --- static/js/user_profile_2.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 7b9b65f..8c6ecaf 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -55,13 +55,12 @@ 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(".info_profile") - // header.scrollIntoView({ - // behavior: "smooth", - // block: "end", - // inline: "nearest" - // }) - document.body.scrollTop = document.documentElement.scrollTop = 0; + let header = document.querySelector(".info_profile") + header.scrollIntoView({ + behavior: "smooth", + block: "end", + inline: "nearest" + }) middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') {