This commit is contained in:
SBD
2023-12-02 15:55:47 +03:00
parent 0e2723a367
commit 7d3da34e22
2 changed files with 6 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ html, body{
max-width: 1280px;
position: relative;
min-height: 695px;
max-height: 100%;
}
.wrapper_content.m_h_0{

View File

@@ -36,6 +36,7 @@ function select_tab_profile (el,url,owner_type=null) {
// enctype: 'json',
data: JSON.stringify(data),
success: function(data){
let scroll_top = window.scrollY
document.querySelector(".info_profile").innerHTML = data.html;
let list_div = document.querySelectorAll('.menu_profile div');
list_div.forEach(el=>{ el.classList.remove('selected'); });
@@ -61,7 +62,10 @@ function select_tab_profile (el,url,owner_type=null) {
// block: "end",
// inline:'nearest'
// })
document.querySelector("body").scrollTop = 0
window.scrollTo({
top: 0,
behavior: "smooth",
});
middleWareJS()
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {