Fixup "Users: Do not reload page when changing status through a popup"

:3
This commit is contained in:
Maxim Leshchenko 2021-12-25 19:58:34 +02:00
parent 19a2325a25
commit a3167ab828
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
2 changed files with 4 additions and 2 deletions

View file

@ -321,7 +321,7 @@
<input type="text" name="status" size="50" value="{$user->getStatus()}" />
</div>
<input type="hidden" name="hash" value="{$csrfToken}" />
<button type="submit" name="submit" class="button" style="width: 43px; height: 22px;">{_send}</button>
<button type="submit" name="submit" class="button" style="height: 22px;">{_send}</button>
</form>
</div>
<div class="accountInfo clearFix">
@ -546,6 +546,8 @@
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()" n:syntax="off">
function setStatusEditorShown(shown) {
document.getElementById("status_editor").style.display = shown ? "block" : "none";
if(!document.status_popup_form.submit.style.width)
document.status_popup_form.submit.style.width = document.status_popup_form.submit.offsetWidth + 4 + "px"
}
document.addEventListener("click", event => {

View file

@ -416,7 +416,7 @@ table {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);;
padding: 10px;
float: right;
margin-top: 6px;
margin-top: 5px;
margin-left: -6px;
}