summaryrefslogtreecommitdiff
path: root/templates/packages/differences.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-11 10:02:26 -0600
committerDan McGee <dan@archlinux.org>2012-12-11 10:02:26 -0600
commit8a8542ede6493939bd6528a72b8fd912fdf4d14b (patch)
tree5b7d15f9ff67b504d45a70eb0c5a3906658ca061 /templates/packages/differences.html
parent498f9b7da0cf715f4303b425edf60b1ee6b13b3f (diff)
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/differences.html')
-rw-r--r--templates/packages/differences.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/packages/differences.html b/templates/packages/differences.html
index b0c5b539..61906fef 100644
--- a/templates/packages/differences.html
+++ b/templates/packages/differences.html
@@ -99,13 +99,14 @@
<script type="text/javascript">
$(document).ready(function() {
$('#table_differences').tablesorter({widgets: ['zebra'], sortList: [[1,0], [0,0]]});
+ $('#table_multilib_differences').tablesorter({widgets: ['zebra'], sortList: [[5, 0]]});
+});
+$(document).ready(function() {
$('#diff_filter select').change(filter_packages);
$('#diff_filter input').change(filter_packages);
$('#criteria_reset').click(filter_packages_reset);
// fire function on page load to ensure the current form selections take effect
filter_packages();
-
- $('#table_multilib_differences').tablesorter({widgets: ['zebra'], sortList: [[5, 0]]});
});
</script>
{% endif %}