0.0.16 send new route form
This commit is contained in:
@@ -13,7 +13,7 @@ function createRoute(){
|
||||
success: function(data){
|
||||
console.log('data received')
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".profile").innerHTML = data.html
|
||||
document.querySelector(".info_profile").innerHTML = data.html
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
20
static/js/sendNewRoute.js
Normal file
20
static/js/sendNewRoute.js
Normal file
@@ -0,0 +1,20 @@
|
||||
function sendRoute(){
|
||||
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
url: '/ru/user_account/new_route_view/',
|
||||
type: "POST",
|
||||
// async: true,
|
||||
cache: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
// enctype: 'json',
|
||||
// data: {},
|
||||
success: function(data){
|
||||
console.log('data received')
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user