diff --git a/Web/Presenters/templates/Group/View.xml b/Web/Presenters/templates/Group/View.xml index 8ad540f7..0a494476 100644 --- a/Web/Presenters/templates/Group/View.xml +++ b/Web/Presenters/templates/Group/View.xml @@ -129,15 +129,15 @@ {var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
{if $thisUser && $club->canBeModifiedBy($thisUser)} -
-
- -
+
+
+ +
{/if} diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index fd385b67..055c0b19 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -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" } }