From a839114cdf80f0ee7d761b8002a5c01dc4f9d571 Mon Sep 17 00:00:00 2001 From: SDE Date: Mon, 21 Oct 2024 13:24:08 +0300 Subject: [PATCH] 1.7.7 fix js dublicates login section --- static/js/authorization.js | 2 +- templates/forms/f_login.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/authorization.js b/static/js/authorization.js index 0c59dfe..d670ec9 100644 --- a/static/js/authorization.js +++ b/static/js/authorization.js @@ -39,7 +39,7 @@ function SendLoginForm(el){ }, error: function (data, exception){ - document.querySelector(".login").innerHTML = data.responseJSON.html + document.querySelector(".wrapper_content").innerHTML = data.responseJSON.html document.getElementsByClassName('recovery')[0].classList.remove('hide') } }); diff --git a/templates/forms/f_login.html b/templates/forms/f_login.html index 8bdf909..fcfe4f9 100644 --- a/templates/forms/f_login.html +++ b/templates/forms/f_login.html @@ -5,7 +5,7 @@ {% trans "Пароль" as p_password %}
-

{% translate "Войдите в профиль" %}

+

{% translate "Войдите в профиль" %}