aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--templates/note/reply_form.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php
index 6272c16..388b243 100644
--- a/templates/note/reply_form.php
+++ b/templates/note/reply_form.php
@@ -22,10 +22,11 @@ $scopeOptions = match ($note->privacy->scope) {
$selectedScope = $note->privacy->scope->value;
?>
<form class="noteReplyForm" id="replyForm-<?= $note->id ?>" _="
- on htmx:afterOnLoad
- send toggle to #interactButton-reply-<?= $note->id ?>
- then trigger update on #liveTimelineUpdater
- on toggle or htmx:afterOnLoad toggle @hidden" hidden hx-post="/fragment/note/<?= $note->id ?>/reply"
+ on htmx:afterOnLoad if event.detail.elt is me
+ send toggle to [me, #interactButton-reply-<?= $note->id ?>]
+ trigger update on #liveTimelineUpdater
+ end
+ on toggle toggle @hidden" hidden hx-post="/fragment/note/<?= $note->id ?>/reply"
hx-disabled-elt="#replySubmitButton-<?= $note->id ?>" hx-swap="outerHTML" hx-target="this">
<div class="row summaryAndContent">
<label for="replyContent-<?= $note->id ?>"><?= __('writeReply.label') ?></label>