[UPDT] HORILLA VIEWS: Add safe template tag

This commit is contained in:
Horilla
2025-02-28 19:04:01 +05:30
parent a9e379f0f1
commit de0989db20

View File

@@ -283,6 +283,7 @@
<script> <script>
reloadSelectedCount($('#count_{{view_id|safe}}'),'{{selected_instances_key_id}}'); reloadSelectedCount($('#count_{{view_id|safe}}'),'{{selected_instances_key_id}}');
reloadSelectedCount($('.count_{{view_id|safe}}'),'{{selected_instances_key_id}}'); reloadSelectedCount($('.count_{{view_id|safe}}'),'{{selected_instances_key_id}}');
{% if records_count_in_tab %}
var tabId = $("#{{view_id}}").closest(".oh-tabs__content").attr("id"); var tabId = $("#{{view_id}}").closest(".oh-tabs__content").attr("id");
var badge = $(`#badge-${tabId}`); var badge = $(`#badge-${tabId}`);
var count = "{{queryset.paginator.count}}"; var count = "{{queryset.paginator.count}}";
@@ -290,6 +291,7 @@
var title = count + " " + label; var title = count + " " + label;
badge.html(count); badge.html(count);
badge.attr("title", title); badge.attr("title", title);
{% endif %}
</script> </script>
{% if bulk_select_option %} {% if bulk_select_option %}
<script> <script>