aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note/write_form.php
diff options
context:
space:
mode:
authorwinter2025-03-20 22:32:18 +0000
committerwinter2025-03-20 22:32:18 +0000
commit9828bc9f61ac6fb679599303eedc8cba46be4fae (patch)
tree66a33ead820cc23edd7c254e7739979e506c9873 /templates/note/write_form.php
parentb5c4e99cb1a2e5bb5cf6d38192d677843b1acd80 (diff)
fix a couple of ui regressions
write note form submit button wasn't being disabled properly. and note notification titles were linking to the actor instead of the note itself
Diffstat (limited to 'templates/note/write_form.php')
-rw-r--r--templates/note/write_form.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/note/write_form.php b/templates/note/write_form.php
index 46422b0..41c24f6 100644
--- a/templates/note/write_form.php
+++ b/templates/note/write_form.php
@@ -4,7 +4,7 @@
</form>
<form id="writeNoteForm" action="/todo" method="post" hx-post="/fragment/note" hx-swap="outerHTML" hx-target="this"
- hx-disabled-elt="find button" _="on htmx:afterOnLoad trigger update on #liveTimelineUpdater"
+ hx-disabled-elt="#writeNoteSubmitButton" _="on htmx:afterOnLoad trigger update on #liveTimelineUpdater"
<?= ($_SERVER['REQUEST_METHOD'] == 'GET') ? 'hx-preserve' : '' ?>>
<div class="row miniProfile">
<a href="/@/<?= $actor->handle ?>" hx-target="#centrePane" hx-swap="outerHTML show:window:top">
@@ -44,6 +44,6 @@
</div>
</details>
<div class="row">
- <button class="primary"><?= __('writeNote.action') ?></button>
+ <button class="primary" id="writeNoteSubmitButton"><?= __('writeNote.action') ?></button>
</div>
</form> \ No newline at end of file