0.0.327
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
function init_arrival_DT (date,single=true,hour=true){
|
||||
function init_arrival_DT (date=null,single=true,hour=true){
|
||||
let minDate = null
|
||||
if (date){
|
||||
minDate = date
|
||||
|
||||
@@ -699,7 +699,8 @@ function editRoute(id) {
|
||||
changeTextButton.innerText = 'Сохранить изменения'
|
||||
|
||||
}
|
||||
|
||||
init_departure_DT()
|
||||
init_arrival_DT()
|
||||
sliderInit();
|
||||
|
||||
|
||||
|
||||
@@ -58,6 +58,10 @@ function select_tab_profile (el,url,owner_type=null) {
|
||||
let user_type = getInfoAboutUser()
|
||||
if (user_type === 'mobile') {
|
||||
closeCurtain()
|
||||
} else {
|
||||
if (!window.location.href.includes('profile')){
|
||||
closeCurtain()
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
@@ -659,6 +663,7 @@ function closeCurtain () {
|
||||
|
||||
|
||||
function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
let page_profile = true
|
||||
let curtain_name = ''
|
||||
let curtain = ''
|
||||
if (left || right){
|
||||
@@ -686,13 +691,16 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
||||
curtain.classList.add("close")
|
||||
let overlay = document.querySelector(".block_overlay")
|
||||
overlay.classList.add('hidden')
|
||||
overlay.classList.remove('show')
|
||||
} else {
|
||||
if (overlay){
|
||||
overlay.classList.toggle("hidden")
|
||||
overlay.classList.toggle("show")
|
||||
} else {
|
||||
let overlay = document.querySelector(".block_overlay")
|
||||
if (overlay){
|
||||
overlay.classList.toggle("hidden")
|
||||
overlay.classList.toggle("show")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user