From 1b2a02b5ab005850a8a1e41afe3cfa7b5c60c21b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 10 Nov 2022 07:20:20 +0000 Subject: [PATCH] Fix HTMX target for search results table --- core/templates/partials/results_table.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/templates/partials/results_table.html b/core/templates/partials/results_table.html index 125bff5..46fc355 100644 --- a/core/templates/partials/results_table.html +++ b/core/templates/partials/results_table.html @@ -83,7 +83,7 @@ hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-trigger="click" - hx-target="#results" + hx-target="#drilldown-table" hx-swap="innerHTML" hx-indicator="#spinner" style="cursor: pointer;"> @@ -424,7 +424,7 @@ hx-get="search/{% querystring table.prefixed_page_field=table.page.previous_page_number %}&{{ uri }}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-trigger="click" - hx-target="#results" + hx-target="#drilldown-table" hx-swap="innerHTML" hx-indicator="#spinner" {% else %} @@ -444,7 +444,7 @@ hx-get="search/{% querystring table.prefixed_page_field=table.page.next_page_number %}&{{ uri }}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-trigger="click" - hx-target="#results" + hx-target="#drilldown-table" hx-swap="innerHTML" hx-indicator="#spinner" {% else %} @@ -473,7 +473,7 @@ hx-get="search/{% querystring table.prefixed_page_field=p %}&{{ uri }}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-trigger="click" - hx-target="#results" + hx-target="#drilldown-table" hx-swap="innerHTML" hx-indicator="#spinner" {% endif %}