Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user