summaryrefslogtreecommitdiffstats
path: root/templates/todolists
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/todolists
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/todolists')
-rw-r--r--templates/todolists/view.html4
1 files changed, 3 insertions, 1 deletions
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