From 8a8542ede6493939bd6528a72b8fd912fdf4d14b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 11 Dec 2012 10:02:26 -0600 Subject: 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 --- templates/todolists/view.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/todolists/view.html') diff --git a/templates/todolists/view.html b/templates/todolists/view.html index eff81aa..b6f5970 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -105,8 +105,10 @@ $(document).ready(function() { sortList: [[2,0], [0,0]], headers: { 5: { sorter: 'todostatus' } } }); +}); +$(document).ready(function() { $('a.status-link').click(todolist_flag); - filter_func = function() { filter_pkgs_list('#todolist_filter', '#dev-todo-pkglist tbody'); }; + var filter_func = function() { filter_pkgs_list('#todolist_filter', '#dev-todo-pkglist tbody'); }; $('#todolist_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 -- cgit v1.2.3-24-g4f1b