diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-29 02:14:29 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-29 02:14:32 -0500 |
commit | 6ac07fd26965dc6b4e6415b8f5f7454cc64b1082 (patch) | |
tree | c7263fee0859b2a7316b962798a4756b5607a8dc | |
parent | 262cea74c16427f47aab80dd59cbf0cb59eeb8c1 (diff) |
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>
-rw-r--r-- | templates/mirrors/status.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 28b2ffea..5724c71c 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]]}); }); |