Wall: Move comments script from Post view to general comments template

This commit is contained in:
Celestora 2021-10-13 21:47:42 +03:00
parent cdbe0f906b
commit a53826f46d
3 changed files with 3 additions and 5 deletions

View file

@ -34,7 +34,3 @@
<a class="profile_link" style="display:block;width:96%;" href="/report.pl/{$post->getId()}?type=post">{_report}</a> <a class="profile_link" style="display:block;width:96%;" href="/report.pl/{$post->getId()}?type=post">{_report}</a>
</div> </div>
{/block} {/block}
{block bodyScripts}
{script "js/al_comments.js"}
{/block}

View file

@ -24,3 +24,5 @@
{/if} --> {/if} -->
{_"comments_tip"} {_"comments_tip"}
{/if} {/if}
{script "js/al_comments.js"}

View file

@ -9,7 +9,7 @@
Вложение: <span>(unknown)</span> Вложение: <span>(unknown)</span>
</div> </div>
<div n:if="$postOpts ?? true" class="post-opts"> <div n:if="$postOpts ?? true" class="post-opts">
{if !is_null($thisUser) && !is_null($club) && $owner < 0} {if !is_null($thisUser) && !is_null($club ?? NULL) && $owner < 0}
{if $club->canBeModifiedBy($thisUser)} {if $club->canBeModifiedBy($thisUser)}
<script> <script>
function onWallAsGroupClick(el) { function onWallAsGroupClick(el) {