diff options
| author | winter | 2025-03-21 23:23:20 +0000 |
|---|---|---|
| committer | winter | 2025-03-21 23:23:20 +0000 |
| commit | f373c6e4723b9900f1ea7286488a6746a73c6cd1 (patch) | |
| tree | 003931b0e9c574c1ec8dcde1eb92f1721f5e1269 /templates | |
| parent | 9733541e7a003c78116c33bbda9a9b09c11327b9 (diff) | |
reload timeline at the right time for reshare button
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/interaction_button.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interaction_button.php b/templates/interaction_button.php index 368cb1a..2b4fb82 100644 --- a/templates/interaction_button.php +++ b/templates/interaction_button.php @@ -16,7 +16,7 @@ $id = "interactButton-$action-$note->id"; <button title="<?= $tooltip ?>" class="material-symbols <?= $icon ?>" hx-post="<?= "/fragment/note/$note->id/$action" ?>" hx-swap="outerHTML" hx-target="closest .interactButtonContainer" hx-disabled-elt="this" id="<?= $id ?>" - _="on click wait 1s then trigger update on #liveTimelineUpdater" <?= ($disabled ?? false) ? 'disabled' : '' ?>> + _="on htmx:afterOnLoad trigger update on #liveTimelineUpdater" <?= ($disabled ?? false) ? 'disabled' : '' ?>> </button> <label for="<?= $id ?>" class="interactionCount"><?= $count ?? '' ?></label> </div>
\ No newline at end of file |
