summaryrefslogtreecommitdiffstats
path: root/templates/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-09 07:40:17 +0200
committerDan McGee <dan@archlinux.org>2012-07-29 00:52:52 +0200
commit2a221fa72fd8491ca1a0633ba62b6a846267b4fc (patch)
tree5768f0af4e3ca1c55df498ff552c03663862e261 /templates/devel
parent280c53eec5661252b5692fa374292c4d421e3bd8 (diff)
downloadarchweb-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/devel')
-rw-r--r--templates/devel/clock.html1
-rw-r--r--templates/devel/index.html7
2 files changed, 6 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 %}