summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNBrowse.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-01 15:05:34 +0100
committerYorhel <git@yorhel.nl>2011-01-01 15:08:16 +0100
commit5ac3d668fb56961aa43f824feb7dc3407b8eb33e (patch)
tree6732ce519be25bb5de67f39e300469a4777f1fa8 /lib/VNDB/Handler/VNBrowse.pm
parent7fd5b49039f5e9b3367a0a9025f695eeabbcd318 (diff)
More infrastructural changes to accomodate for the permanent filters
- Added a 'prefs' option to htmlFooter() to add preference data for use by Javascript. - Added an /xml/prefs.xml URL for setting preferences from JS. - Added 'filter_*' keys to the prefs_key ENUM - Load filters by default on VN and Release browser
Diffstat (limited to 'lib/VNDB/Handler/VNBrowse.pm')
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index 15407076..1060a256 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -21,7 +21,7 @@ sub list {
{ name => 'p', required => 0, default => 1, template => 'int' },
{ name => 'q', required => 0, default => '' },
{ name => 'sq', required => 0, default => '' },
- { name => 'fil',required => 0, default => '' },
+ { name => 'fil',required => 0, default => $self->authPref('filter_vn') },
);
return 404 if $f->{_err};
$f->{q} ||= $f->{sq};
@@ -65,7 +65,7 @@ sub list {
end; # /form
$self->htmlBrowseVN($list, $f, $np, "/v/$char?q=$f->{q};fil=$f->{fil}", $f->{fil} =~ /tag_inc-/);
- $self->htmlFooter;
+ $self->htmlFooter(prefs => ['filter_vn']);
}