diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-09 07:40:17 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-29 00:52:52 +0200 |
commit | 2a221fa72fd8491ca1a0633ba62b6a846267b4fc (patch) | |
tree | 5768f0af4e3ca1c55df498ff552c03663862e261 /templates | |
parent | 280c53eec5661252b5692fa374292c4d421e3bd8 (diff) | |
download | archweb-2a221fa72fd8491ca1a0633ba62b6a846267b4fc.tar.gz archweb-2a221fa72fd8491ca1a0633ba62b6a846267b4fc.tar.xz |
Upgrade to jQuery 1.7.2 and a maintained tablesorter
This touches a wide variety of files as well as makes updates to some of
our own code to be fully compatible. We also use some of the newer
locale/accent sorting features of tablesorter to make tables with
developer names sort in a more sane fashion.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/devel/clock.html | 1 | ||||
-rw-r--r-- | templates/devel/index.html | 7 | ||||
-rw-r--r-- | templates/public/keys.html | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/templates/devel/clock.html b/templates/devel/clock.html index 9ebea06..bf4614b 100644 --- a/templates/devel/clock.html +++ b/templates/devel/clock.html @@ -58,6 +58,7 @@ $(document).ready(function() { $("#clocks-table:has(tbody tr)").tablesorter({ widgets: ['zebra'], + sortLocaleCompare: true, sortList: [[0,0]], headers: { 4: { sorter: false } } }); diff --git a/templates/devel/index.html b/templates/devel/index.html index ad8ee0e..488b675 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -306,11 +306,14 @@ $(document).ready(function() { sortList: [[0,0]], headers: { 6: {sorter: false } } }); - $(".dash-stats").tablesorter({ + var settings = { widgets: ['zebra'], sortList: [[0,0]], headers: { 1: { sorter: 'pkgcount' }, 2: { sorter: 'pkgcount' }, 3: { sorter: 'pkgcount' } } - }); + }; + $(".dash-stats").not($("#stats-by-maintainer")).tablesorter(settings); + settings['sortLocaleCompare'] = true; + $("#stats-by-maintainer").tablesorter(settings); }); </script> {% endblock %} diff --git a/templates/public/keys.html b/templates/public/keys.html index cd0b059..1fed3c1 100644 --- a/templates/public/keys.html +++ b/templates/public/keys.html @@ -94,6 +94,7 @@ <script type="text/javascript"> $(document).ready(function() { $("#key-status").tablesorter({ + sortLocaleCompare: true, headers: { 1: { sorter: false } } }); }); |