By default sort complete status for todolists

Adding the kind column removed the default sorting on the completion.
This commit is contained in:
Jelle van der Waa 2021-02-14 20:16:28 +01:00
parent a218519cca
commit d5b020c613
No known key found for this signature in database
GPG Key ID: C06086337C50773E

View File

@ -60,10 +60,7 @@ <h2>Package Todo Lists</h2>
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript" nonce={{ CSP_NONCE }}>
$(document).ready(function() {
// I'm not sure why it didn't autodetect digit, but it has to be explicit
// http://stackoverflow.com/questions/302749/jquery-tablesorter-problem
$(".results").tablesorter({widgets: ['zebra'], sortList: [[6, 1], [1, 1]],
headers: { 4: { sorter: 'digit' }, 5: { sorter: 'digit' } } });
$(".results").tablesorter({widgets: ['zebra'], sortList: [[7, 1], [1, 1]]});
});
</script>
{% endblock %}