0.0.146 routes

This commit is contained in:
SBD
2025-02-04 19:27:36 +03:00
parent 8e2f5f6bac
commit eff021b4e2
5 changed files with 25 additions and 20 deletions

View File

@@ -345,16 +345,19 @@
}
}
.place_title{
--max-width: calc(var(--from-to-place-data-width) - 45.3px);
--gradient_100: var(--max-width);
--max-width: calc(var(--from-to-place-data-width) - 52.3px);
font-size: var(--big-font-size);
font-weight: 800;
max-width: var(--max-width);
overflow: hidden;
white-space: nowrap;
color: transparent;
background-clip: text;
-webkit-background-clip: text;
background-image: linear-gradient(90deg, rgb(0 0 0) 0%, #FFFFFF calc(var(--max-width) - 30px));
&.gradient{
color: transparent;
background-clip: text;
-webkit-background-clip: text;
background-image: linear-gradient(90deg, rgb(0 0 0) 0%, #FFFFFF var(--gradient_100));
}
}
}
}

View File

@@ -1,8 +1,9 @@
function searchRoutes (form) {
function searchRoutes (form=undefined) {
event.preventDefault()
let $filter_form = $('.b_filter_routes form')[0];
let $search_form = $('.b_search_routes form')[0];
let formData = getFormData(form);
let formData = getFormData($search_form);
formData = getFormData($filter_form, formData);
formData.append('owner_type', 'customer');

View File

@@ -1,4 +1,4 @@
function chooseCheckbox(el) {
function chooseCheckbox(el, callback) {
if (!el) return;
resetFieldError(el);
@@ -6,6 +6,7 @@ function chooseCheckbox(el) {
let $checkbox = $parent.querySelector('.checkbox')
$checkbox.classList.toggle("checked");
if (callback) callback($checkbox.classList.contains('checked'));
}
function getFormData(form, formData=new FormData()) {