0.0.300
This commit is contained in:
@@ -45,10 +45,12 @@
|
|||||||
// });
|
// });
|
||||||
function init_arrival_DT (date,single=true,hour=true){
|
function init_arrival_DT (date,single=true,hour=true){
|
||||||
let minDate = null
|
let minDate = null
|
||||||
|
let maxDate = null
|
||||||
if (date){
|
if (date){
|
||||||
minDate = date
|
minDate = date
|
||||||
} else {
|
} else {
|
||||||
minDate = moment()
|
minDate = moment()
|
||||||
|
maxDate = !1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -64,7 +66,8 @@ function init_arrival_DT (date,single=true,hour=true){
|
|||||||
"singleDatePicker":single,
|
"singleDatePicker":single,
|
||||||
"timePicker":hour,
|
"timePicker":hour,
|
||||||
"timePicker24Hour":true,
|
"timePicker24Hour":true,
|
||||||
"minDate":minDate
|
"minDate":minDate,
|
||||||
|
'maxDate':maxDate
|
||||||
},
|
},
|
||||||
function (start, end, label) {
|
function (start, end, label) {
|
||||||
|
|
||||||
|
|||||||
@@ -38,11 +38,18 @@ function select_tab_profile (el,url,owner_type=null) {
|
|||||||
el.classList.add('selected')
|
el.classList.add('selected')
|
||||||
let body = document.querySelector("body")
|
let body = document.querySelector("body")
|
||||||
body.style.overflow = "hidden"
|
body.style.overflow = "hidden"
|
||||||
|
let confirm_url_f_lang = ''
|
||||||
if (owner_type){
|
if (owner_type){
|
||||||
window.history.pushState(null, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(`${url}_${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 {
|
} else {
|
||||||
window.history.pushState(null, null, `/${document.documentElement.lang}/profile/page/${profile_tabs_f_static_map.get(url)}/`)
|
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()
|
middleWareJS()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user