diff options
Diffstat (limited to 'templates/note/reply_form.php')
| -rw-r--r-- | templates/note/reply_form.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php index cd67ce8..e51466d 100644 --- a/templates/note/reply_form.php +++ b/templates/note/reply_form.php @@ -21,10 +21,12 @@ $scopeOptions = match ($note->privacy->scope) { }; $selectedScope = $note->privacy->scope->value; ?> -<form class="noteReplyForm" id="replyForm-<?= $note->id ?>" - _="on submit send toggle to previous <button.reply/> then wait 1s then trigger update on #liveTimelineUpdater on toggle or submit toggle @hidden" - hidden hx-post="/fragment/note/<?= $note->id ?>/reply" hx-disabled-elt="find button" hx-swap="outerHTML" - hx-target="this"> +<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" + hx-disabled-elt="find button" hx-swap="outerHTML" hx-target="this"> <div class="row summaryAndContent"> <label for="replyContent-<?= $note->id ?>"><?= __('writeReply.label') ?></label> <input type="text" id="replySummary-<?= $note->id ?>" name="summary" autocomplete="off" |
