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 %} {#