This commit is contained in:
2023-11-06 14:10:17 +03:00
parent 93cf3aa695
commit 3aa4b774bd
6 changed files with 40 additions and 9 deletions

View File

@@ -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

View File

@@ -699,7 +699,8 @@ function editRoute(id) {
changeTextButton.innerText = 'Сохранить изменения'
}
init_departure_DT()
init_arrival_DT()
sliderInit();

View File

@@ -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")
}
}