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 }}