Skip to content

Commit

Permalink
#15852: Hide count element for non-HTMX requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed May 2, 2024
1 parent 3d4bb20 commit f8eee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/htmx/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
{% endwith %}

{# Include the updated object count for display elsewhere on the page #}
<div hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>
<div class="d-none" hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>

0 comments on commit f8eee45

Please sign in to comment.