summaryrefslogtreecommitdiffstats
path: root/templates/todolists/view.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-03-09 17:49:22 +0100
committerDan McGee <dan@archlinux.org>2014-03-09 17:49:22 +0100
commit697a2b15c1e402c1c624af1ffeaf5123d7fb0e9f (patch)
tree38f8bddc706a6559534219906513edc9f49c5179 /templates/todolists/view.html
parent2e06e74d3a2a09cbb2a2521cdd55d6543cb56674 (diff)
downloadarchweb-697a2b15c1e402c1c624af1ffeaf5123d7fb0e9f.tar.gz
archweb-697a2b15c1e402c1c624af1ffeaf5123d7fb0e9f.tar.xz
Use localStorage to save/restore todolist filters
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists/view.html')
-rw-r--r--templates/todolists/view.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index a3ee547..0045390 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -118,10 +118,14 @@ $(document).ready(function() {
});
$(document).ready(function() {
$('a.status-link').click(todolist_flag);
- var 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');
+ filter_todolist_save({{ list.id }});
+ };
$('#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_load({{ list.id }});
filter_func();
});
</script>