[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(() => {
$(".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();

View File

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