1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

HTMX work on 9583.

This commit is contained in:
Daniel Sheppard
2024-02-07 12:05:11 -06:00
parent 4c39516253
commit e762755e80
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ Context:
{% block content %}
{# Object list tab #}
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab" hx-include="#object-list thead select, #object-list input[type='search']">
{# Applied filters #}
{% if filter_form %}

View File

@ -74,7 +74,7 @@ def render_filter_field(field, bulk_nullable=False, label=None):
"""
if hasattr(field.field, 'widget'):
field.field.widget.attrs.update({
'hx-get': None,
'hx-get': "",
'hx-target': '#object_list',
'hx-trigger': 'hidden.bs.dropdown from:closest .dropdown'
})