summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-29 09:14:29 +0200
committerDan McGee <dan@archlinux.org>2011-03-29 09:14:32 +0200
commit6ac07fd26965dc6b4e6415b8f5f7454cc64b1082 (patch)
treec7263fee0859b2a7316b962798a4756b5607a8dc /templates/mirrors
parent262cea74c16427f47aab80dd59cbf0cb59eeb8c1 (diff)
downloadarchweb-6ac07fd26965dc6b4e6415b8f5f7454cc64b1082.tar.gz
archweb-6ac07fd26965dc6b4e6415b8f5f7454cc64b1082.tar.xz
Ensure durations are sorted correctly
The automatic detection started using the builtin time parser instead of our duration parser, causing it to barf on anything > 60 minutes. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/status.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 28b2ffe..5724c71 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -106,12 +106,11 @@
<script type="text/javascript" src="/media/archweb.js"></script>
<script type="text/javascript">
$(document).ready(function() {
+ var headers = { 5: { sorter: 'duration' }, 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } };
$("#outofsync_mirrors:has(tbody tr)").tablesorter(
- {widgets: ['zebra'], sortList: [[3,1]],
- headers: { 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } } });
+ {widgets: ['zebra'], sortList: [[3,1]], headers: headers });
$("#successful_mirrors:has(tbody tr)").tablesorter(
- {widgets: ['zebra'], sortList: [[8,0]],
- headers: { 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } } });
+ {widgets: ['zebra'], sortList: [[8,0]], headers: headers });
$("#errorlog_mirrors:has(tbody tr)").tablesorter(
{widgets: ['zebra'], sortList: [[4,1], [5,1]]});
});