summaryrefslogtreecommitdiff
path: root/templates/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-15 09:13:58 -0500
committerDan McGee <dan@archlinux.org>2012-09-15 09:13:58 -0500
commitdfbf7cdd4c273f2b1f3c1c79b97149d37e63e028 (patch)
tree7f9b1ccbaa969c2af34791217f29f11bf94d485c /templates/todolists
parent59c353e22c5a9d1fda347e82f0734cf78bc7d387 (diff)
Make todolist filtering functions more generic
This will allow us to use them elsewhere in a future commit. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists')
-rw-r--r--templates/todolists/view.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index c22bfecf..eff81aaf 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -106,10 +106,11 @@ $(document).ready(function() {
headers: { 5: { sorter: 'todostatus' } }
});
$('a.status-link').click(todolist_flag);
- $('#todolist_filter input').change(filter_todolist);
- $('#criteria_reset').click(filter_todolist_reset);
+ 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
- filter_todolist();
+ filter_func();
});
</script>
{% endblock %}