Fixup "Users: Add a popup to change the status"

Sorry :3
This commit is contained in:
Maxim Leshchenko 2021-11-25 22:21:38 +02:00
parent 76605b9eed
commit 73b8ac3f4a
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -552,8 +552,9 @@
Function.noop
]);
}
</script>
{if isset($thisUser) && $user->getId() == $thisUser->getId()}
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()">
function setStatusEditorShown(shown) {
document.getElementById("status_editor").style.display = shown ? "block" : "none";
}
@ -564,7 +565,6 @@
});
document.getElementById("page_status_text").onclick = setStatusEditorShown.bind(this, true);
{/if}
</script>
</div>