mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-15 12:08:17 -06:00
Fix loading links from within embedded tables
This commit is contained in:
parent
9a9d47fc45
commit
aff72b132c
@ -1,9 +1,8 @@
|
|||||||
{% load django_tables2 %}
|
{% load django_tables2 %}
|
||||||
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}>
|
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %} hx-disinherit="hx-target hx-select hx-swap">
|
||||||
{% if table.show_header %}
|
{% if table.show_header %}
|
||||||
<thead
|
<thead
|
||||||
hx-target="closest .htmx-container"
|
hx-target="closest .htmx-container"
|
||||||
hx-disinherit="hx-select hx-swap"
|
|
||||||
{% if not table.embedded %} hx-push-url="true"{% endif %}
|
{% if not table.embedded %} hx-push-url="true"{% endif %}
|
||||||
>
|
>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -10,4 +10,4 @@ def htmx_partial(request):
|
|||||||
Determines whether to render partial (versus complete) HTML content
|
Determines whether to render partial (versus complete) HTML content
|
||||||
in response to an HTMX request, based on the target element.
|
in response to an HTMX request, based on the target element.
|
||||||
"""
|
"""
|
||||||
return request.htmx and request.htmx.target != PAGE_CONTAINER_ID
|
return request.htmx and request.htmx.target and request.htmx.target != PAGE_CONTAINER_ID
|
||||||
|
Loading…
Reference in New Issue
Block a user