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