From c8f292d5ae74e1a9ff5644e8d962a1e96bf3b5fa Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 17 Feb 2025 15:11:14 +0530 Subject: [PATCH] [UPDT] HORILLA VIEWS: Feature limit option --- horilla_views/templates/generic/horilla_nav.html | 2 ++ horilla_views/templates/generic/horilla_tabs.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/horilla_views/templates/generic/horilla_nav.html b/horilla_views/templates/generic/horilla_nav.html index aed80fba1..fd4c4e18b 100644 --- a/horilla_views/templates/generic/horilla_nav.html +++ b/horilla_views/templates/generic/horilla_nav.html @@ -256,9 +256,11 @@ } setTimeout(() => { $(".oh-btn--view-active").click(); + {% if apply_first_filter %} if (!$(".oh-btn--view-active").length) { $("#applyFilter").click() } + {% endif %} }, 100); $(".oh-btn--view").click(function (e) { e.preventDefault(); diff --git a/horilla_views/templates/generic/horilla_tabs.html b/horilla_views/templates/generic/horilla_tabs.html index cf1769a33..99cd4d562 100644 --- a/horilla_views/templates/generic/horilla_tabs.html +++ b/horilla_views/templates/generic/horilla_tabs.html @@ -4,6 +4,7 @@ {% comment %} {% include "attendance/attendance/attendance_nav.html" %} {% endcomment %} {% load i18n generic_template_filters %}
+ {% if show_filter_tags %} {% include "generic/filter_tags.html" %} {% endif %}