From a4944360a64340a1f6c073242a589dd719b7b0ec Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 17:13:15 +0300 Subject: [PATCH] 5 --- static/js/user_profile_2.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index e070ff9..e8517db 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -533,9 +533,9 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ url = 'show_chat_w_user/' } let user_type = getInfoAboutUser() - if (user_type === 'mobile' || user_type === 'laptop') { - open_curtain_w_contacts() - } + // if (user_type === 'mobile' || user_type === 'laptop') { + // open_curtain_w_contacts() + // } data['mobile'] = getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop' $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, @@ -563,9 +563,9 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top}) } // second time beacause we need to close curtain - if (user_type === 'mobile' || user_type === 'laptop') { - open_curtain_w_contacts() - } + // if (user_type === 'mobile' || user_type === 'laptop') { + // open_curtain_w_contacts() + // } // document.querySelector(".handler_curtain_left").classList.toggle("open") // document.querySelector(".handler_curtain_left").classList.toggle("close") @@ -586,7 +586,7 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ // } - + // check state checkStateAfterChooseContact() },