summaryrefslogtreecommitdiffstats
path: root/templates/packages/signoffs.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-11 17:02:26 +0100
committerDan McGee <dan@archlinux.org>2012-12-11 17:02:26 +0100
commit8a8542ede6493939bd6528a72b8fd912fdf4d14b (patch)
tree5b7d15f9ff67b504d45a70eb0c5a3906658ca061 /templates/packages/signoffs.html
parent498f9b7da0cf715f4303b425edf60b1ee6b13b3f (diff)
downloadarchweb-8a8542ede6493939bd6528a72b8fd912fdf4d14b.tar.gz
archweb-8a8542ede6493939bd6528a72b8fd912fdf4d14b.tar.xz
Use multiple separate document.ready() handlers
If one of them breaks, we don't want to prevent the rest of the on-load events from firing. This is currently a problem on some browsers with the versions of jQuery and tablesorter we are using. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/signoffs.html')
-rw-r--r--templates/packages/signoffs.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
index fc6adca..b673723 100644
--- a/templates/packages/signoffs.html
+++ b/templates/packages/signoffs.html
@@ -85,9 +85,11 @@
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
- $('a.signoff-link').click(signoff_package);
- $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0]],
+ $('.results').tablesorter({widgets: ['zebra'], sortList: [[0,0]],
headers: { 5: { sorter: 'epochdate' }, 7: { sorter: false }, 8: {sorter: false } } });
+});
+$(document).ready(function() {
+ $('a.signoff-link').click(signoff_package);
$('#signoffs_filter input').change(filter_signoffs);
$('#criteria_reset').click(filter_signoffs_reset);
// fire function on page load to ensure the current form selections take effect