0.0.37
This commit is contained in:
@@ -396,8 +396,8 @@ function getRoute(){
|
||||
'route_id': id
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
$.ajax({
|
||||
headers: {"X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val()},
|
||||
url: '/ru/routes/edit_route/',
|
||||
type: "POST",
|
||||
// async: true,
|
||||
@@ -406,14 +406,14 @@ function getRoute(){
|
||||
contentType: false,
|
||||
// enctype: 'json',
|
||||
data: JSON.stringify(route_obj),
|
||||
success: function(data){
|
||||
success: function (data) {
|
||||
console.log('data received')
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
error: function (data, exception) {
|
||||
console.log(101)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user