[UPDT] HORILLA VIEWS: Add safe template tag
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user