diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 256c3b3..676b559 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -674,7 +674,7 @@ function OnSelectionChange(el) { // } // }); // } -// ЛОСЬ ДЫРЯВЫЙ + function editRoute(id) { let route_obj = { 'route_id': id @@ -697,8 +697,8 @@ function editRoute(id) { if(data.html){ let changeTextButton = document.getElementById('registration') changeTextButton.innerText = 'Сохранить изменения' - } + init_departure_DT() init_arrival_DT() sliderInit(); diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index e1b3508..b5f2f7b 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -72,7 +72,7 @@ {# {% if form.initial.departure_DT %}value="{{ form.initial.departure_DT.date|date:"Y-m-d" }}T{{ form.initial.departure_DT.time|date:"H:i" }}"{% endif %}#} {# />#} {# boris change input #} - +
{# end #} @@ -94,7 +94,8 @@ {# {% if form.initial.arrival_DT %}value="{{ form.initial.arrival_DT.date|date:"Y-m-d" }}T{{ form.initial.arrival_DT.time|date:"H:i" }}"{% endif %}#} {# />#} {# boris change input #} - + +
{# end #} {% if not errors_off and form.errors and form.errors.arrival_DT %}