mirror of
https://github.com/openvk/openvk
synced 2025-06-07 06:57:00 +03:00
feat: add focus on status edit
This commit is contained in:
parent
c858a119d1
commit
686ce928dd
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