mirror of
https://github.com/openvk/openvk
synced 2025-04-18 22:23:04 +03:00
поправил табы
This commit is contained in:
parent
04d24aaba3
commit
c82e2c9f4c
2 changed files with 12 additions and 12 deletions
|
@ -129,15 +129,15 @@
|
|||
{var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
||||
<div class="avatar_block" style="position:relative;" data-club="{$club->getId()}">
|
||||
{if $thisUser && $club->canBeModifiedBy($thisUser)}
|
||||
<div class="avatar_controls">
|
||||
<div {if !$hasAvatar}style="display:none"{/if} class="avatarDelete hoverable"></div>
|
||||
<div class="avatar_variants">
|
||||
<a {if $hasAvatar}style="display:none"{/if} class="_add_image hoverable upload_image" id="add_image">
|
||||
<span>{_add_image}</span></a>
|
||||
<a {if !$hasAvatar}style="display:none"{/if} class="_add_image hoverable set_image" id="add_image">
|
||||
<span>{_upload_new_picture}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="avatar_controls">
|
||||
<div {if !$hasAvatar}style="display:none"{/if} class="avatarDelete hoverable"></div>
|
||||
<div class="avatar_variants">
|
||||
<a {if $hasAvatar}style="display:none"{/if} class="_add_image hoverable upload_image" id="add_image">
|
||||
<span>{_add_image}</span></a>
|
||||
<a {if !$hasAvatar}style="display:none"{/if} class="_add_image hoverable set_image" id="add_image">
|
||||
<span>{_upload_new_picture}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<a href="{$avatarLink|nocheck}">
|
||||
|
|
|
@ -2307,17 +2307,17 @@ $(document).on("click", ".avatarDelete", (e) => {
|
|||
}
|
||||
|
||||
document.querySelector(".avatarDelete").classList.remove("lagged")
|
||||
|
||||
|
||||
u("body").removeClass("dimmed");
|
||||
document.querySelector("html").style.overflowY = "scroll"
|
||||
u(".ovk-diag-cont").remove()
|
||||
|
||||
document.querySelector("#bigAvatar").src = response.url
|
||||
document.querySelector("#bigAvatar").parentNode.href = response.new_photo ? ("/photo" + response.new_photo) : "javascript:void(0)"
|
||||
|
||||
|
||||
if(!response.has_new_photo) {
|
||||
document.querySelector(".avatar_controls .set_image").style.display = "none"
|
||||
document.querySelector(".avatar_controls .avatarDelete").style.display = "none"
|
||||
document.querySelector(".avatar_controls .avatarDelete").style.display = "none"
|
||||
document.querySelector(".avatar_controls .upload_image").style.display = "block"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue