#761 explicit null template layout for xhr/fetch snippets
This commit is contained in:
@@ -37,11 +37,11 @@ get '/ajax/content/report/vlaninventory' => require_login sub {
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/vlaninventory.tt', { results => $json };
|
||||
template 'ajax/report/vlaninventory.tt', { results => $json }, { layout => undef };
|
||||
}
|
||||
else {
|
||||
header( 'Content-Type' => 'text/comma-separated-values' );
|
||||
template 'ajax/report/vlaninventory_csv.tt', { results => \@results };
|
||||
template 'ajax/report/vlaninventory_csv.tt', { results => \@results }, { layout => undef };
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user