mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fixup "Users: Add a popup to change the status"
Sorry :3
This commit is contained in:
parent
76605b9eed
commit
73b8ac3f4a
1 changed files with 10 additions and 10 deletions
|
@ -552,19 +552,19 @@
|
||||||
Function.noop
|
Function.noop
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
{if isset($thisUser) && $user->getId() == $thisUser->getId()}
|
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()">
|
||||||
function setStatusEditorShown(shown) {
|
function setStatusEditorShown(shown) {
|
||||||
document.getElementById("status_editor").style.display = shown ? "block" : "none";
|
document.getElementById("status_editor").style.display = shown ? "block" : "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("click", event => {
|
document.addEventListener("click", event => {
|
||||||
if(!event.target.closest("#status_editor") && !event.target.closest("#page_status_text"))
|
if(!event.target.closest("#status_editor") && !event.target.closest("#page_status_text"))
|
||||||
setStatusEditorShown(false);
|
setStatusEditorShown(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById("page_status_text").onclick = setStatusEditorShown.bind(this, true);
|
document.getElementById("page_status_text").onclick = setStatusEditorShown.bind(this, true);
|
||||||
{/if}
|
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue