Skip to content

Commit

Permalink
Improve hx-trigger to avoid loading more than once
Browse files Browse the repository at this point in the history
This is the same change as the previous commit but on the review form.
  • Loading branch information
bickelj committed Sep 25, 2024
1 parent a7004f6 commit 831eb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypha/apply/review/templates/review/review_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>{{ value }}</h2>
x-transition:leave-start="transform opacity-100 translate-x-0"
x-transition:leave-end="transform opacity-0 translate-x-full"
hx-get="{% url 'funds:submissions:partial-answers' submission.id %}"
hx-trigger="fetchSubmission from:body, intersect once"
hx-trigger="fetchSubmission from:body once"
>
<p>{% trans "Loading…" %}</p>
</section>
Expand Down

0 comments on commit 831eb38

Please sign in to comment.