From b64f58c237ac7ebdcc66c91a800a04faa011a68b Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 27 Oct 2023 17:59:21 +0300 Subject: [PATCH] 0.0.300 --- static/js/range_calendar.js | 5 ++++- static/js/user_profile_2.js | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/js/range_calendar.js b/static/js/range_calendar.js index 7954e1d..06c2405 100644 --- a/static/js/range_calendar.js +++ b/static/js/range_calendar.js @@ -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) { diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index d2fdc96..c64eb5b 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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() },