[UPDT] HORILLA VIEWS: Feature limit option

This commit is contained in:
Horilla
2025-02-17 15:11:14 +05:30
parent c4cdcc17f1
commit c8f292d5ae
2 changed files with 5 additions and 0 deletions

View File

@@ -256,9 +256,11 @@
} }
setTimeout(() => { setTimeout(() => {
$(".oh-btn--view-active").click(); $(".oh-btn--view-active").click();
{% if apply_first_filter %}
if (!$(".oh-btn--view-active").length) { if (!$(".oh-btn--view-active").length) {
$("#applyFilter").click() $("#applyFilter").click()
} }
{% endif %}
}, 100); }, 100);
$(".oh-btn--view").click(function (e) { $(".oh-btn--view").click(function (e) {
e.preventDefault(); e.preventDefault();

View File

@@ -4,6 +4,7 @@
{% comment %} {% include "attendance/attendance/attendance_nav.html" %} {% endcomment %} {% comment %} {% include "attendance/attendance/attendance_nav.html" %} {% endcomment %}
{% load i18n generic_template_filters %} {% load i18n generic_template_filters %}
<div id="{{view_id}}"> <div id="{{view_id}}">
{% if show_filter_tags %} {% include "generic/filter_tags.html" %} {% endif %}
<div class="oh-tabs HTV"> <div class="oh-tabs HTV">
<script> <script>
$("#reloadMessagesButton").click() $("#reloadMessagesButton").click()
@@ -90,6 +91,8 @@
</div> </div>
</div> </div>
<script> <script>
$("li.oh-tabs__tab").click(function (e) { $("li.oh-tabs__tab").click(function (e) {
var target = `li[data-target="${$(this).attr("data-target")}"]` var target = `li[data-target="${$(this).attr("data-target")}"]`