6
This commit is contained in:
@@ -46,8 +46,11 @@ window.onload = function (){
|
|||||||
//
|
//
|
||||||
function goToChatIfChat () {
|
function goToChatIfChat () {
|
||||||
if (document.querySelector('.block-chat')){
|
if (document.querySelector('.block-chat')){
|
||||||
let chat = document.querySelector('.block-chat')
|
let scroll_el = document.querySelector('.block-chat')
|
||||||
let top = chat.offsetTop
|
if (document.querySelector(".name_ticket")){
|
||||||
|
scroll_el = document.querySelector(".name_ticket")
|
||||||
|
}
|
||||||
|
let top = scroll_el.offsetTop
|
||||||
window.scrollTo({top:top})
|
window.scrollTo({top:top})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user