0.0.64 error 500 w_route_info.html

This commit is contained in:
2023-07-31 19:24:48 +03:00
parent 47ceecdb59
commit 2e9200953e
3 changed files with 37 additions and 5 deletions

View File

@@ -372,6 +372,30 @@ function getRoute(){
}
});
}function editRoute(id) {
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/routes/edit_route/',
type: "POST",
// async: true,
cache: false,
processData: false,
contentType: false,
// enctype: 'json',
data: id,
success: function(data){
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
},
error: function (data, exception){
console.log(101)
}
});
}
@@ -379,4 +403,3 @@ function getRoute(){