#761 explicit null template layout for xhr/fetch snippets

This commit is contained in:
Oliver Gorwits
2021-10-12 08:57:31 +01:00
parent 15b05b56cc
commit 7ba097ec18
25 changed files with 49 additions and 49 deletions

View File

@@ -32,12 +32,12 @@ get '/ajax/content/report/portadmindown' => require_login sub {
if ( request->is_ajax ) {
my $json = to_json (\@results);
template 'ajax/report/portadmindown.tt', { results => $json };
template 'ajax/report/portadmindown.tt', { results => $json }, { layout => undef };
}
else {
header( 'Content-Type' => 'text/comma-separated-values' );
template 'ajax/report/portadmindown_csv.tt',
{ results => \@results, };
{ results => \@results, }, { layout => undef };
}
};