Merge remote-tracking branch 'origin/main'

This commit is contained in:
SDE
2023-12-02 15:59:40 +03:00
2 changed files with 6 additions and 1 deletions

View File

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

View File

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