aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/interaction_button.php
diff options
context:
space:
mode:
authorwinter2025-01-15 20:33:38 +0000
committerwinter2025-01-15 20:33:38 +0000
commit75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch)
tree6240a96338f58b5f175e97132a4ce5d804e3b2da /templates/interaction_button.php
parent07df9da970ceaa54c734d73bdb148fa36d42db63 (diff)
implement home timeline
Diffstat (limited to 'templates/interaction_button.php')
-rw-r--r--templates/interaction_button.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/interaction_button.php b/templates/interaction_button.php
index edd1a25..b3d072d 100644
--- a/templates/interaction_button.php
+++ b/templates/interaction_button.php
@@ -15,7 +15,8 @@ $id = "interactButton-$action-$note->id";
<div class="interactButtonContainer <?= $action . ($active ? ' active' : '') ?>">
<button title="<?= $tooltip ?>" class="icon material-symbols-outlined <?= $active ? 'active' : '' ?>"
hx-post="<?= "/fragment/note/$note->id/$action" ?>" hx-swap="outerHTML"
- hx-target="closest .interactButtonContainer" hx-disabled-elt="this" id="<?= $id ?>">
+ hx-target="closest .interactButtonContainer" hx-disabled-elt="this" id="<?= $id ?>"
+ _="on click wait 1s then trigger update on #liveTimelineUpdater">
<?= $icon ?>
</button>
<label for="<?= $id ?>" class="interactionCount"><?= $count ?? '' ?></label>