mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Add htmx_table to __all__ * Fix dropdown menu clipping * Fix loading links from within embedded tables * Fix rendering of object deletion warning
This commit is contained in:
@@ -10,4 +10,4 @@ def htmx_partial(request):
|
||||
Determines whether to render partial (versus complete) HTML content
|
||||
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
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="card-body htmx-container table-responsive p-0"
|
||||
<div class="htmx-container table-responsive"
|
||||
hx-get="{% url viewname %}{% if url_params %}?{{ url_params.urlencode }}{% endif %}"
|
||||
hx-target="this"
|
||||
hx-trigger="load" hx-select="table" hx-swap="innerHTML"
|
||||
|
@@ -8,6 +8,7 @@ __all__ = (
|
||||
'checkmark',
|
||||
'copy_content',
|
||||
'customfield_value',
|
||||
'htmx_table',
|
||||
'formaction',
|
||||
'tag',
|
||||
)
|
||||
|
Reference in New Issue
Block a user