mirror of
https://github.com/openvk/openvk
synced 2025-07-04 06:49:50 +03:00
feat: add focus on status edit
This commit is contained in:
parent
ed8c166d7d
commit
7b055e863c
1 changed files with 6 additions and 1 deletions
|
@ -2572,7 +2572,12 @@ u(document).on('mouseover mousemove mouseout', `div[data-tip='simple']`, (e) =>
|
|||
})
|
||||
|
||||
function setStatusEditorShown(shown) {
|
||||
document.getElementById("status_editor").style.display = shown ? "block" : "none";
|
||||
if(shown) {
|
||||
document.getElementById("status_editor").style.display = "block"
|
||||
document.querySelector("#status_editor input").focus()
|
||||
} else {
|
||||
document.getElementById("status_editor").style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
u(document).on('click', (event) => {
|
||||
|
|
Loading…
Reference in a new issue