load external results earlier

This commit is contained in:
Your Name 2022-05-07 08:44:25 -04:00
parent 3c9b700316
commit 8048e67a28

View file

@ -52,7 +52,7 @@
</li>
{% endfor %}
{% if request.GET.q and user.is_authenticated %}
<li class="entity-list__entity" hx-get="{% url 'common:external_search' %}?q={{ request.GET.q }}&c={{ request.GET.c }}&page={% if pagination.current_page %}{{ pagination.current_page }}{% else %}1{% endif %}" hx-trigger="revealed" hx-swap="outerHTML">
<li class="entity-list__entity" hx-get="{% url 'common:external_search' %}?q={{ request.GET.q }}&c={{ request.GET.c }}&page={% if pagination.current_page %}{{ pagination.current_page }}{% else %}1{% endif %}" hx-trigger="load" hx-swap="outerHTML">
{% trans '正在实时搜索站外条目' %}
</li>
{% endif %}
@ -142,7 +142,7 @@
</a>
{% endif %}
</div>
<div class="add-entity-entries__entry">
<!-- div class="add-entity-entries__entry">
{% if request.GET.c and request.GET.c in categories %}
{% if request.GET.c|lower == 'book' %}
@ -202,7 +202,7 @@
</a>
{% endif %}
</div>
</div -->
</div>