load external results earlier
This commit is contained in:
parent
3c9b700316
commit
8048e67a28
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue