поправил табы

This commit is contained in:
koke228666 2025-03-09 17:08:23 +03:00
parent 04d24aaba3
commit c82e2c9f4c
2 changed files with 12 additions and 12 deletions

View file

@ -129,15 +129,15 @@
{var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())} {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()}"> <div class="avatar_block" style="position:relative;" data-club="{$club->getId()}">
{if $thisUser && $club->canBeModifiedBy($thisUser)} {if $thisUser && $club->canBeModifiedBy($thisUser)}
<div class="avatar_controls"> <div class="avatar_controls">
<div {if !$hasAvatar}style="display:none"{/if} class="avatarDelete hoverable"></div> <div {if !$hasAvatar}style="display:none"{/if} class="avatarDelete hoverable"></div>
<div class="avatar_variants"> <div class="avatar_variants">
<a {if $hasAvatar}style="display:none"{/if} class="_add_image hoverable upload_image" id="add_image"> <a {if $hasAvatar}style="display:none"{/if} class="_add_image hoverable upload_image" id="add_image">
<span>{_add_image}</span></a> <span>{_add_image}</span></a>
<a {if !$hasAvatar}style="display:none"{/if} class="_add_image hoverable set_image" id="add_image"> <a {if !$hasAvatar}style="display:none"{/if} class="_add_image hoverable set_image" id="add_image">
<span>{_upload_new_picture}</span></a> <span>{_upload_new_picture}</span></a>
</div> </div>
</div> </div>
{/if} {/if}
<a href="{$avatarLink|nocheck}"> <a href="{$avatarLink|nocheck}">

View file

@ -2307,17 +2307,17 @@ $(document).on("click", ".avatarDelete", (e) => {
} }
document.querySelector(".avatarDelete").classList.remove("lagged") document.querySelector(".avatarDelete").classList.remove("lagged")
u("body").removeClass("dimmed"); u("body").removeClass("dimmed");
document.querySelector("html").style.overflowY = "scroll" document.querySelector("html").style.overflowY = "scroll"
u(".ovk-diag-cont").remove() u(".ovk-diag-cont").remove()
document.querySelector("#bigAvatar").src = response.url document.querySelector("#bigAvatar").src = response.url
document.querySelector("#bigAvatar").parentNode.href = response.new_photo ? ("/photo" + response.new_photo) : "javascript:void(0)" document.querySelector("#bigAvatar").parentNode.href = response.new_photo ? ("/photo" + response.new_photo) : "javascript:void(0)"
if(!response.has_new_photo) { if(!response.has_new_photo) {
document.querySelector(".avatar_controls .set_image").style.display = "none" 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" document.querySelector(".avatar_controls .upload_image").style.display = "block"
} }
} }