This commit is contained in:
2023-07-31 19:33:18 +03:00
parent 972baac51d
commit 19eb2957e4
2 changed files with 6 additions and 1 deletions

View File

@@ -373,6 +373,10 @@ function getRoute(){
}
});
}function editRoute(id) {
let route_obj = {
'route_id': id
}
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/routes/edit_route/',
@@ -382,7 +386,7 @@ function getRoute(){
processData: false,
contentType: false,
// enctype: 'json',
data: id,
data: JSON.stringify(route_obj),
success: function(data){
console.log('data received')
// location.href = '/profile'

View File

@@ -1,4 +1,5 @@
{% for route in routes %}
<div class="my_route">
<div class="route_info">
<div class="route_info_about">