use sortable table on Roll Results page

(cherry picked from commit 32d8f33932d913154989e41c940ba24adc98a881)
This commit is contained in:
Fabian Dill 2020-12-19 19:29:33 +01:00
parent 7b38e3e037
commit 84d74fab77
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
window.addEventListener('load', () => {
let tables = $(".autodatatable").DataTable({
"paging": false,
"ordering": true,
"info": false,
"dom": "t",
});
console.log(tables);
});

View File

@ -0,0 +1,5 @@
{% extends "tablepage.html" %}
{% block head %}
{{ super() }}
<script type="application/ecmascript" src="{{ static_autoversion("assets/autodatatable.js") }}"></script>
{% endblock %}