From c82e2c9f4cab7ff1cefce51940a70661a6de0d1b Mon Sep 17 00:00:00 2001 From: koke228666 <146654074+koke228666@users.noreply.github.com> Date: Sun, 9 Mar 2025 17:08:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=82=D0=B0=D0=B1=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/Presenters/templates/Group/View.xml | 18 +++++++++--------- Web/static/js/al_wall.js | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) 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" } }