0.0.1 upd

This commit is contained in:
2023-06-22 16:27:36 +03:00
parent 2e4d72156c
commit 27dd698d88
8 changed files with 275 additions and 9 deletions

21
static/js/header.js Normal file
View File

@@ -0,0 +1,21 @@
function SendRegistrationForm(el){
event.preventDefault()
let form = el.form;
let formData = new FormData(form);
$.ajax({
headers: { "X-CSRFToken": '{{csrf_token}}' },
url: '/ru/user_account/registration/',
type: "POST",
// async: true,
cache: false,
processData: false,
contentType: false,
// enctype: 'json',
data: formData,
success: function(data){
location.href = '/'
}
});
}