0.0.07 form poster
This commit is contained in:
@@ -52,19 +52,11 @@ function select_tab_profile (el,url,owner_type=null, check_orders_required) {
|
||||
let confirm_url_f_lang_ru = ''
|
||||
let confirm_url_f_lang_en = ''
|
||||
if (owner_type){
|
||||
window.history.pushState({ prevUrl: window.location.href }, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(`${url}_${owner_type}`)}`)
|
||||
confirm_url_f_lang_ru = `/ru/profile/page/${profile_tabs_f_static_map.get(`${url}_${owner_type}`)}/`
|
||||
confirm_url_f_lang_en = `/en/profile/page/${profile_tabs_f_static_map.get(`${url}_${owner_type}`)}/`
|
||||
if(!window.history.state.prevUrl.match(/create/)) {
|
||||
window.location.reload()
|
||||
}
|
||||
} else {
|
||||
window.history.pushState({ prevUrl: window.location.href }, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(url)}/`)
|
||||
confirm_url_f_lang_ru = `/ru/profile/page/${profile_tabs_f_static_map.get(url)}/`
|
||||
confirm_url_f_lang_en = `/en/profile/page/${profile_tabs_f_static_map.get(url)}/`
|
||||
if(window.history.state.prevUrl.match(/create/)) {
|
||||
window.location.reload()
|
||||
}
|
||||
}
|
||||
document.querySelector("#ru_lang").href = confirm_url_f_lang_ru
|
||||
document.querySelector("#en_lang").href = confirm_url_f_lang_en
|
||||
|
||||
Reference in New Issue
Block a user