Merge remote-tracking branch 'origin/main'

This commit is contained in:
2023-11-19 16:44:32 +03:00
11 changed files with 110 additions and 93 deletions

View File

@@ -64,4 +64,10 @@ function changeWidthEL (el){
el.classList.add('w_100')
}
}
function focusOnInput (el) {
let parent = el.offsetParent
let input = parent.querySelector('.find_route')
input.focus()
}

View File

@@ -53,8 +53,12 @@ function select_tab_profile (el,url,owner_type=null) {
}
document.querySelector("#ru_lang").href = confirm_url_f_lang_ru
document.querySelector("#en_lang").href = confirm_url_f_lang_en
let header = document.querySelector("header")
header.scrollIntoView({
behavior: "smooth",
block: "end",
inline: "nearest"
})
middleWareJS()
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
@@ -430,7 +434,7 @@ function createTicket (el) {
}
function selectedUserMessenger (ticket_id=null,user_id=null){
function selectedUserMessenger (ticket_id=null,user_id=null,el){
let loader = document.querySelector(".loader_chat_f_sw_chats")
let block_chat = document.querySelector(".block-chat")
if (loader){
@@ -471,6 +475,12 @@ function selectedUserMessenger (ticket_id=null,user_id=null){
document.querySelector(".info_profile").innerHTML = data.html;
document.querySelector(".enter-message-inp").focus()
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'});
let menu = document.querySelector(".menu_buttons.curtain.left")
let container_user_messenger = document.querySelector(".container-messenger")
if (!container_user_messenger.classList.contains('margin') || !menu.classList.contains('margin')){
container_user_messenger.classList.add('margin')
menu.classList.add('margin')
}
let user_type = getInfoAboutUser()
let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain'))