0.0.300
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user