Wall: Fix invalid reference to $club in TextArea

This commit is contained in:
Celestora 2021-10-13 21:31:41 +03:00
parent a75a4dd8b2
commit cdbe0f906b

View file

@ -9,20 +9,22 @@
Вложение: <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 && $club->canBeModifiedBy($thisUser)} {if !is_null($thisUser) && !is_null($club) && $owner < 0}
<script> {if $club->canBeModifiedBy($thisUser)}
function onWallAsGroupClick(el) { <script>
_display = el.checked ? "block" : "none"; function onWallAsGroupClick(el) {
document.querySelector("#forceSignOpt").style.display = _display; _display = el.checked ? "block" : "none";
} document.querySelector("#forceSignOpt").style.display = _display;
</script> }
</script>
<label>
<input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> {_"post_as_group"} <label>
</label> <input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> {_"post_as_group"}
<label id="forceSignOpt" style="display: none;"> </label>
<input type="checkbox" name="force_sign" /> {_"add_signature"} <label id="forceSignOpt" style="display: none;">
</label> <input type="checkbox" name="force_sign" /> {_"add_signature"}
</label>
{/if}
{/if} {/if}
<label> <label>