This commit is contained in:
SBD
2023-12-03 13:52:49 +03:00
parent 1be50b1277
commit c74aff7b91
3 changed files with 12 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ profile_tabs_f_static_map = new Map([
['dashboard','dashboard']
])
function select_tab_profile (el,url,owner_type=null) {
let data = {}
let confirm_url = `/user_account/${url}/`
@@ -80,6 +79,9 @@ function select_tab_profile (el,url,owner_type=null) {
setStandartSettingsToBlockOverlay()
}
if (window.location.href.includes("profile")){
selectTabProfileIfHisNotSelected(url)
}
},
error: function (data){
console.log(data)
@@ -87,6 +89,13 @@ function select_tab_profile (el,url,owner_type=null) {
}
});
}
function selectTabProfileIfHisNotSelected (url) {
let el_f_select = document.querySelector(`[data-ajax-url=${url}]`)
el_f_select.classList.add('selected')
}
function clickONTHEAPROfileBTN (el) {
let el_f_click = el.querySelector(".text_btn_profile")
el_f_click.click()