summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-18 09:32:27 -0500
committerDan McGee <dan@archlinux.org>2014-10-18 09:32:27 -0500
commit91a36e65a3564d9fe265aaea90a895143764f2ba (patch)
treee75f3b68342ded3a125c6e2de7774df4e088f8f9
parent0f0ce18109f8104d7b2abe9024ef26fa07ff0292 (diff)
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>
-rw-r--r--templates/packages/stale_relations.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/packages/stale_relations.html b/templates/packages/stale_relations.html
index f1ad4373..2b5af236 100644
--- a/templates/packages/stale_relations.html
+++ b/templates/packages/stale_relations.html
@@ -117,13 +117,13 @@
<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 %}