Merge remote-tracking branch 'origin/main'

This commit is contained in:
2023-07-31 21:01:39 +03:00
8 changed files with 50 additions and 16 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'