diff --git a/static/js/header.js b/static/js/header.js index 0b64a2a..d3fb05c 100644 --- a/static/js/header.js +++ b/static/js/header.js @@ -14,8 +14,11 @@ function SendRegistrationForm(el){ // enctype: 'json', data: formData, success: function(data){ - console.log(JSON.stringify(data)) + // location.href = '/' + }, + error: function (data, exception){ + document.querySelector(".registration").innerHTML = data.html } }); }