From 8539e9ce304975a2e94cdc56fcb6104558b7989e Mon Sep 17 00:00:00 2001 From: ArtemB Date: Wed, 13 Sep 2023 12:27:53 +0300 Subject: [PATCH] 0.0.133 add counter for feedback --- static/js/user_profile.js | 8 ++++---- .../static_pages_blocks/b_about_service.html | 16 +++++++++------- templates/forms/f_find_route_filters_form.html | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 3416a0a..130592f 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -757,10 +757,10 @@ function RequestCommercialOffer (el){ function counterText(evt) { - const ta = document.querySelector('.feedback_form_message') - const counter = document.querySelector('.counter-text__current') - const text_l = evt.target.value.length - counter.innerText = text_l + const counter = document.querySelector('.counter-text__current'); + const maxlength = 360; + counter.textContent = evt.value.length; + } diff --git a/templates/blocks/static_pages_blocks/b_about_service.html b/templates/blocks/static_pages_blocks/b_about_service.html index 8d2f680..e280697 100644 --- a/templates/blocks/static_pages_blocks/b_about_service.html +++ b/templates/blocks/static_pages_blocks/b_about_service.html @@ -102,14 +102,16 @@
+ 0 diff --git a/templates/forms/f_find_route_filters_form.html b/templates/forms/f_find_route_filters_form.html index f9b252b..f2220bd 100644 --- a/templates/forms/f_find_route_filters_form.html +++ b/templates/forms/f_find_route_filters_form.html @@ -28,7 +28,7 @@
{% endif %}