summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-03-09 17:58:51 +0100
committerDan McGee <dan@archlinux.org>2014-03-09 17:58:51 +0100
commit268317dd331bcdbe1c2828583034c0274a19eea3 (patch)
treed0a7f120ddd881a6f0ae12a2af7340c0d3b0e1ec /templates
parent697a2b15c1e402c1c624af1ffeaf5123d7fb0e9f (diff)
downloadarchweb-268317dd331bcdbe1c2828583034c0274a19eea3.tar.gz
archweb-268317dd331bcdbe1c2828583034c0274a19eea3.tar.xz
Use localStorage to save/restore developer report filters
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/devel/packages.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/devel/packages.html b/templates/devel/packages.html
index 74aebf2..c190ab0 100644
--- a/templates/devel/packages.html
+++ b/templates/devel/packages.html
@@ -84,10 +84,14 @@ $(document).ready(function() {
$(".results").tablesorter({widgets: ['zebra']});
});
$(document).ready(function() {
- var filter_func = function() { filter_pkgs_list('#report_filter', '#dev-report-results tbody'); };
+ var filter_func = function() {
+ filter_pkgs_list('#report_filter', '#dev-report-results tbody');
+ filter_report_save('{{ report.slug }}');
+ };
$('#report_filter input').change(filter_func);
$('#criteria_reset').click(function() { filter_pkgs_reset(filter_func); });
// run on page load to ensure current form selections take effect
+ filter_report_load('{{ report.slug }}');
filter_func();
});
</script>