mirror of
https://github.com/openvk/openvk
synced 2025-03-20 08:18:12 +03:00
Fixup "Users: Do not reload page when changing status through a popup"
:3
This commit is contained in:
parent
19a2325a25
commit
a3167ab828
2 changed files with 4 additions and 2 deletions
|
@ -321,7 +321,7 @@
|
||||||
<input type="text" name="status" size="50" value="{$user->getStatus()}" />
|
<input type="text" name="status" size="50" value="{$user->getStatus()}" />
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="accountInfo clearFix">
|
<div class="accountInfo clearFix">
|
||||||
|
@ -546,6 +546,8 @@
|
||||||
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()" n:syntax="off">
|
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()" n:syntax="off">
|
||||||
function setStatusEditorShown(shown) {
|
function setStatusEditorShown(shown) {
|
||||||
document.getElementById("status_editor").style.display = shown ? "block" : "none";
|
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 => {
|
document.addEventListener("click", event => {
|
||||||
|
|
|
@ -416,7 +416,7 @@ table {
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);;
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 6px;
|
margin-top: 5px;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue