From 1f39da2b458f248cfccd0b9d5a5d2ea47cd63980 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 29 Aug 2023 15:01:36 +0300 Subject: [PATCH] 0.0.116 disabled for send_new_route --- static/css/styles.css | 1 + static/js/user_profile.js | 3 +++ templates/blocks/profile/b_new_route.html | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 8d4839b..c5efe65 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1226,6 +1226,7 @@ form.new_route{ height: 60px; padding-left: 10px; z-index: 1; + } .from_address_point_txt.post_route{ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 70869e4..da4251a 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -346,6 +346,8 @@ function sliderInit() { function sendRoute(el, routeID = null){ event.preventDefault() + el.disabled = true + let list_of_elements_form = document.querySelectorAll(".el_form_b_new_route"); let obj_w_el_form = {} @@ -401,6 +403,7 @@ function sendRoute(el, routeID = null){ }, error: function (data, exception){ document.querySelector(".info_profile").innerHTML = data.responseJSON.html; + // $(el).attr('disabled', 'false') sliderInit(); diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 6ab37bd..efa5402 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -63,7 +63,7 @@ {{ form.fields.arrival_DT.label }}