From 4630e954e2d639622740401d360755f948e78952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Fri, 29 Oct 2021 06:54:26 +0200 Subject: [PATCH] Swap to outerHTML --- .../scipost/templates/scipost/portal/_hx_publications_page.html | 1 + .../scipost/templates/scipost/portal/_hx_submissions_page.html | 1 + 2 files changed, 2 insertions(+) diff --git a/scipost_django/scipost/templates/scipost/portal/_hx_publications_page.html b/scipost_django/scipost/templates/scipost/portal/_hx_publications_page.html index a47b218b5..fdac09e57 100644 --- a/scipost_django/scipost/templates/scipost/portal/_hx_publications_page.html +++ b/scipost_django/scipost/templates/scipost/portal/_hx_publications_page.html @@ -12,6 +12,7 @@ <button class="btn btn-primary m-2" type="button" hx-get="{% url 'scipost:_hx_publications_page' %}?page={{ page_obj.next_page_number }}" hx-target="#next-publications-{{ page_obj.number }}" + hx-swap="outerHTML" hx-indicator="#indicator-publications-page-{{ page_obj.number }}" > Load page {{ page_obj.next_page_number }} (out of {{ page_obj.paginator.num_pages }}) diff --git a/scipost_django/scipost/templates/scipost/portal/_hx_submissions_page.html b/scipost_django/scipost/templates/scipost/portal/_hx_submissions_page.html index 386cc5b5b..52f502f9e 100644 --- a/scipost_django/scipost/templates/scipost/portal/_hx_submissions_page.html +++ b/scipost_django/scipost/templates/scipost/portal/_hx_submissions_page.html @@ -12,6 +12,7 @@ <button class="btn btn-primary m-2" type="button" hx-get="{% url 'scipost:_hx_submissions_page' %}?page={{ page_obj.next_page_number }}" hx-target="#next-submissions-{{ page_obj.number }}" + hx-swap="outerHTML" hx-indicator="#indicator-submissions-page-{{ page_obj.number }}" > Load page {{ page_obj.next_page_number }} (out of {{ page_obj.paginator.num_pages }}) -- GitLab