diff options
author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2010-08-05 11:14:18 +0200 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2010-08-05 11:14:18 +0200 |
commit | 1c4967095e1e3f4e3ea7b36e540da0fca7fec403 (patch) | |
tree | b48ad87da5c9723970a97247bcba146e4c94ebb7 /lib/LXRng/Web.pm | |
parent | a3464e8e24e5c2bf1a824f2e6a581f095e244b7a (diff) |
Make non-ajax interface redirect ajax urls to plain urls.
Diffstat (limited to 'lib/LXRng/Web.pm')
-rw-r--r-- | lib/LXRng/Web.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm index ba7943f..2ae3fa4 100644 --- a/lib/LXRng/Web.pm +++ b/lib/LXRng/Web.pm @@ -219,9 +219,11 @@ sub print_tree_list { $base =~ s,[+]trees/?$,,; $template->process('tree_list.tt2', {'context' => $context, - 'base_url' => $base}) + 'base_url' => $base, + 'is_ajax' => ($context->prefs and + $context->prefs->{'navmethod'} eq 'ajax')}) or die $template->error(); -} +} sub print_release_list { my ($context, $template) = @_; |