From 335af09596a4c93756bf6898d7784c70d82b689b Mon Sep 17 00:00:00 2001 From: borissedw Date: Sat, 11 Nov 2023 15:30:32 +0300 Subject: [PATCH] 0.0.349 --- static/js/user_profile_2.js | 6 ++++-- templates/blocks/profile/b_buttons_menu_profile.html | 2 +- templates/widgets/profile/w_button_for_profile_menu.html | 7 ++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 8f24fb0..279071a 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -791,8 +791,8 @@ function closeOverlay () { // nothing to do } else { let overlay = document.querySelector(".block_overlay") - overlay.classList.toggle('hidden') - overlay.classList.toggle('show') + overlay.classList.add('hidden') + overlay.classList.remove('show') } } @@ -816,6 +816,8 @@ function getInfoCurtain (curtain,zIndex,name) { let type_curt = getTypeOfData(curtain) if (curtain[0] && type_curt === 'object'){ curtain_f_w = curtain[0] + } else { + curtain_f_w = curtain } diff --git a/templates/blocks/profile/b_buttons_menu_profile.html b/templates/blocks/profile/b_buttons_menu_profile.html index 3d06639..db7ba50 100644 --- a/templates/blocks/profile/b_buttons_menu_profile.html +++ b/templates/blocks/profile/b_buttons_menu_profile.html @@ -26,7 +26,7 @@ {% with sel_page_name='change_profile' ajax_url="change_profile" title="Мой профиль" img_path="/static/img/svg/User.svg"%} {% include "widgets/profile/w_button_for_profile_menu.html" %} {% endwith %} - {% with sel_page_name='create_route_for_mover' title="Выход"%} + {% with sel_page_name='create_route_for_mover' sel_page_name='logout' title="Выход"%} {% include "widgets/profile/w_button_for_profile_menu.html" %} {% endwith %} {#
#} diff --git a/templates/widgets/profile/w_button_for_profile_menu.html b/templates/widgets/profile/w_button_for_profile_menu.html index 17d4935..7245406 100644 --- a/templates/widgets/profile/w_button_for_profile_menu.html +++ b/templates/widgets/profile/w_button_for_profile_menu.html @@ -9,7 +9,12 @@ {% if page_type and page_type == 'profile' or not sel_page_name %} {% else %} - + {% if sel_page_name == 'logout' %} + + {% endif %} + {% if sel_page_name != 'logoout' %} + + {% endif %} {% endif %} {{ title }} {% if page_name == 'chat' or page_name == 'support' %}