diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-11 17:02:26 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-11 17:02:26 +0100 |
commit | 8a8542ede6493939bd6528a72b8fd912fdf4d14b (patch) | |
tree | 5b7d15f9ff67b504d45a70eb0c5a3906658ca061 /templates/devel | |
parent | 498f9b7da0cf715f4303b425edf60b1ee6b13b3f (diff) | |
download | archweb-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/devel')
-rw-r--r-- | templates/devel/packages.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/devel/packages.html b/templates/devel/packages.html index 4e1381a..a62ae1a 100644 --- a/templates/devel/packages.html +++ b/templates/devel/packages.html @@ -78,7 +78,9 @@ <script type="text/javascript"> $(document).ready(function() { $(".results").tablesorter({widgets: ['zebra']}); - filter_func = function() { filter_pkgs_list('#report_filter', '#dev-report-results tbody'); }; +}); +$(document).ready(function() { + var filter_func = function() { filter_pkgs_list('#report_filter', '#dev-report-results tbody'); }; $('#report_filter input').change(filter_func); $('#criteria_reset').click(function() { filter_pkgs_reset(filter_func); }); // fire function on page load to ensure the current form selections take effect |