0.0.53
This commit is contained in:
@@ -41,7 +41,9 @@ function sendRoute(el){
|
|||||||
|
|
||||||
|
|
||||||
//cleaning route inputs after selection changes
|
//cleaning route inputs after selection changes
|
||||||
function OnSelectionChange() {
|
function OnSelectionChange(el) {
|
||||||
|
let form = el.form;
|
||||||
|
let formData = new FormData(form);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
url: '/ru/user_account/new_route_view/',
|
url: '/ru/user_account/new_route_view/',
|
||||||
@@ -51,7 +53,7 @@ function OnSelectionChange() {
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
// enctype: 'json',
|
// enctype: 'json',
|
||||||
// data: {},
|
data: formData,
|
||||||
success: function(data){
|
success: function(data){
|
||||||
// console.log('data received')
|
// console.log('data received')
|
||||||
// location.href = '/profile'
|
// location.href = '/profile'
|
||||||
|
|||||||
Reference in New Issue
Block a user