aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note/reply_form.php
diff options
context:
space:
mode:
authorwinter2025-03-16 02:04:04 +0000
committerwinter2025-03-16 02:04:04 +0000
commitdd4d47bde45d20954129ba256696bf12c3826cdd (patch)
tree83029bead8fbd1fe7206961b8d0145b1400f6f38 /templates/note/reply_form.php
parent23ddb01a20788da2c98c4d5bb9bd271ceff532c8 (diff)
fix hx-target everywhere :<
Diffstat (limited to 'templates/note/reply_form.php')
-rw-r--r--templates/note/reply_form.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php
index 2d8cfc3..cd67ce8 100644
--- a/templates/note/reply_form.php
+++ b/templates/note/reply_form.php
@@ -23,7 +23,8 @@ $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">
+ 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"