From 423394a9d99aa500c1047b81cce8d74b621933c5 Mon Sep 17 00:00:00 2001 From: SBD Date: Mon, 17 Feb 2025 22:53:58 +0300 Subject: [PATCH] 0.0.165 routes --- static/js/authorization.js | 5 +++-- templates/pages/profile/p_login.html | 1 - templates/pages/profile/p_user_profile.html | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/static/js/authorization.js b/static/js/authorization.js index d670ec9..96cb1a0 100644 --- a/static/js/authorization.js +++ b/static/js/authorization.js @@ -27,11 +27,12 @@ function SendLoginForm(el){ - if(url === '/user_account/login/'){ + if(url === '/user_account/login/') { + localStorage.setItem('needed_fbq', true) location.href = data.redirect_url//`/profile/page/dashboard/` window.sessionStorage.removeItem('mailingSubscribeRequired') window.sessionStorage.removeItem('email') - } else if(url === '/user_account/password_recovery/'){ + } else if (url === '/user_account/password_recovery/'){ document.getElementById('password_recovery').innerHTML = data.message } diff --git a/templates/pages/profile/p_login.html b/templates/pages/profile/p_login.html index 20bdd24..29d0a5c 100644 --- a/templates/pages/profile/p_login.html +++ b/templates/pages/profile/p_login.html @@ -5,7 +5,6 @@ {% block meta %} - {% endblock %} {% block content %} diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index d2d92d5..4260439 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -33,6 +33,27 @@ + + + {% endblock %}