#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

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