diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 260c756..5b6acdc 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -322,9 +322,9 @@ } .container-messages{ - height: 63%; + height: 74%; width: 100%; - min-height: 440px; + /*min-height: 440px;*/ } .footer-chat{ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 0c77574..1001d9e 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -231,14 +231,14 @@ function sendRoute(el, routeID = null){ event.preventDefault() let form = el.form; let formData = new FormData(form); - let add_url = '' + let url = '/ru/routes/create_or_change_route/' if (routeID !== null){ - add_url = routeID + '/' + url = '/ru/routes/change_route/' + routeID + '/' } $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, - url: '/ru/routes/change_route/' + add_url, + url: url, type: "POST", // async: true, cache: false, @@ -254,7 +254,7 @@ function sendRoute(el, routeID = null){ }, error: function (data, exception){ - document.querySelector(".info_profile").innerHTML = data.responseJSON.html; + document.querySelector(".info_profile").innerHTML = data.responseText;