This commit is contained in:
2023-10-27 17:59:21 +03:00
parent cc86400957
commit b64f58c237
2 changed files with 11 additions and 1 deletions

View File

@@ -45,10 +45,12 @@
// });
function init_arrival_DT (date,single=true,hour=true){
let minDate = null
let maxDate = null
if (date){
minDate = date
} else {
minDate = moment()
maxDate = !1
}
@@ -64,7 +66,8 @@ function init_arrival_DT (date,single=true,hour=true){
"singleDatePicker":single,
"timePicker":hour,
"timePicker24Hour":true,
"minDate":minDate
"minDate":minDate,
'maxDate':maxDate
},
function (start, end, label) {

View File

@@ -38,11 +38,18 @@ function select_tab_profile (el,url,owner_type=null) {
el.classList.add('selected')
let body = document.querySelector("body")
body.style.overflow = "hidden"
let confirm_url_f_lang = ''
if (owner_type){
window.history.pushState(null, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(`${url}_${owner_type}`)}/`)
confirm_url_f_lang = `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(`${url}_${owner_type}`)}/`
} else {
window.history.pushState(null, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(url)}/`)
confirm_url_f_lang = `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(url)}/`
}
document.querySelector("#ru_lang").href = confirm_url_f_lang
document.querySelector("#en_lang").href = confirm_url_f_lang
middleWareJS()
},