Skip to content

Commit

Permalink
Simplifly hx-trigger.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Sep 26, 2024
1 parent ebb560b commit 34e724b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<button
class="tab__item ms-auto block pb-4"
x-data
@click="$dispatch('fetchSubmission'); showSubmission = !showSubmission"
@click="showSubmission = !showSubmission"
>
{% trans "Toggle submission" %}
</button>
Expand Down Expand Up @@ -75,7 +75,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 once"
hx-trigger="intersect once"
>
<p>{% trans "Loading…" %}</p>
</section>
Expand Down
4 changes: 2 additions & 2 deletions hypha/apply/review/templates/review/review_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<button
class="tab__item ms-auto block pb-4"
x-data
@click="$dispatch('fetchSubmission'); showSubmission = !showSubmission"
@click="showSubmission = !showSubmission"
>
{% trans "Toggle submission" %}
</button>
Expand Down 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 once"
hx-trigger="intersect once"
>
<p>{% trans "Loading…" %}</p>
</section>
Expand Down

0 comments on commit 34e724b

Please sign in to comment.