[CHANGE] Re-enable filterDropdown JS

This commit is contained in:
Peter Pfeufer 2024-02-04 13:40:48 +01:00
parent 5cd5180a91
commit 3ebf11308c
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
3 changed files with 8 additions and 5 deletions

View File

@ -71,7 +71,7 @@
{% block extra_javascript %} {% block extra_javascript %}
{% include 'bundles/datatables-js-bs5.html' %} {% include 'bundles/datatables-js-bs5.html' %}
{% include 'bundles/moment-js.html' with locale=True %} {% include 'bundles/moment-js.html' with locale=True %}
{# {% include 'bundles/filterdropdown-js.html' %}#} {% include 'bundles/filterdropdown-js.html' %}
<script> <script>
$.fn.dataTable.moment = (format, locale) => { $.fn.dataTable.moment = (format, locale) => {
@ -117,7 +117,8 @@
idx: 6 idx: 6
} }
], ],
bootstrap: true bootstrap: true,
bootstrap_version: 5
}, },
"stateSave": true, "stateSave": true,
"stateDuration": 0 "stateDuration": 0

View File

@ -55,7 +55,7 @@
{% endblock content %} {% endblock content %}
{% block extra_javascript %} {% block extra_javascript %}
{% include "bundles/datatables-js-bs5.html" %} {% include "bundles/datatables-js-bs5.html" %}
{# {% include "bundles/filterdropdown-js.html" %}#} {% include "bundles/filterdropdown-js.html" %}
<script> <script>
$(document).ready(() => { $(document).ready(() => {
@ -75,7 +75,8 @@
idx: 0, idx: 0,
title: 'Source' title: 'Source'
}], }],
bootstrap: true bootstrap: true,
bootstrap_version: 5
}, },
"stateSave": true, "stateSave": true,
"stateDuration": 0, "stateDuration": 0,

View File

@ -60,7 +60,7 @@
{% block extra_javascript %} {% block extra_javascript %}
{% include "bundles/datatables-js-bs5.html" %} {% include "bundles/datatables-js-bs5.html" %}
{# {% include "bundles/filterdropdown-js.html" %}#} {% include "bundles/filterdropdown-js.html" %}
<script> <script>
$(document).ready(() => { $(document).ready(() => {
@ -86,6 +86,7 @@
} }
], ],
bootstrap: true, bootstrap: true,
bootstrap_version: 5
}, },
"stateSave": true, "stateSave": true,
"stateDuration": 0, "stateDuration": 0,