Tweak sorting settings on stale relations page
* Don't allow sorting of packages columns, doesn't make much sense * Default to sorting by pkgbase on all tables * Ensure all JS is executed inside doc.ready function (wow, how has this been wrong for so long?) Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
0f0ce18109
commit
91a36e65a3
@ -117,13 +117,13 @@ <h3>Maintainers with Wrong Permissions ({{ wrong_permissions|length }})</h3>
|
||||
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#inactive-user:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false } }, sortList: [[3,0]]});
|
||||
$('#inactive-user:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false }, 2: { sorter: false } }, sortList: [[1,0]]});
|
||||
$('#missing-pkgbase:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false } }, sortList: [[1,0]]});
|
||||
});
|
||||
$('#wrong-permissions:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false } }, sortList: [[3,0]]});
|
||||
$('#wrong-permissions:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false }, 2: { sorter: false } }, sortList: [[1,0]]});
|
||||
$('table.results').bind('sortEnd', function() {
|
||||
$('input.relation-checkbox').enableCheckboxRangeSelection();
|
||||
});
|
||||
$('input.relation-checkbox').enableCheckboxRangeSelection();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user