From e76c0a182996511f03ce8057331fc74a52aaa031 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 29 Oct 2024 10:14:54 +0530 Subject: [PATCH] [UPDT] HORILLA VIEWS: Variable declaration --- horilla_views/templates/generic/group_by.html | 8 ++++---- horilla_views/templates/generic/horilla_list.html | 13 ++++++------- .../templates/generic/reload_select_field.html | 4 ++++ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/horilla_views/templates/generic/group_by.html b/horilla_views/templates/generic/group_by.html index 97d00f35d..96b518608 100644 --- a/horilla_views/templates/generic/group_by.html +++ b/horilla_views/templates/generic/group_by.html @@ -326,10 +326,10 @@ reloadSelectedCount($('#count_{{view_id|safe}}'),'{{selected_instances_key_id}}'); reloadSelectedCount($('.count_{{view_id|safe}}')); var tabId = $("#{{view_id}}").closest(".oh-tabs__content").attr("id") - let badge = $(`#badge-${tabId}`) - let count = "{{queryset.paginator.count}}" - let label = badge.attr("data-badge-label") || "" - let title = count + " " + label + var badge = $(`#badge-${tabId}`) + var count = "{{queryset.paginator.count}}" + var label = badge.attr("data-badge-label") || "" + var title = count + " " + label badge.html(count) badge.attr("title",title) diff --git a/horilla_views/templates/generic/horilla_list.html b/horilla_views/templates/generic/horilla_list.html index d6d654c53..e26fd3d56 100644 --- a/horilla_views/templates/generic/horilla_list.html +++ b/horilla_views/templates/generic/horilla_list.html @@ -203,13 +203,12 @@
{% for action in actions %} {% if action.accessibility|accessibility:instance %} - + {% endif %} {% endfor %}
@@ -298,10 +297,10 @@ reloadSelectedCount($('#count_{{view_id|safe}}'),'{{selected_instances_key_id}}'); reloadSelectedCount($('.count_{{view_id|safe}}')); var tabId = $("#{{view_id}}").closest(".oh-tabs__content").attr("id"); - let badge = $(`#badge-${tabId}`); - let count = "{{queryset.paginator.count}}"; - let label = badge.attr("data-badge-label") || ""; - let title = count + " " + label; + var badge = $(`#badge-${tabId}`); + var count = "{{queryset.paginator.count}}"; + var label = badge.attr("data-badge-label") || ""; + var title = count + " " + label; badge.html(count); badge.attr("title", title); diff --git a/horilla_views/templates/generic/reload_select_field.html b/horilla_views/templates/generic/reload_select_field.html index 8beab5d69..8487c1a1a 100644 --- a/horilla_views/templates/generic/reload_select_field.html +++ b/horilla_views/templates/generic/reload_select_field.html @@ -3,6 +3,10 @@