DataTables for IP inventory report

This commit is contained in:
Eric A. Miller
2014-05-29 20:32:44 -04:00
parent 7d5c3f3191
commit 8590b6781f
2 changed files with 45 additions and 25 deletions

View File

@@ -153,7 +153,8 @@ get '/ajax/content/report/ipinventory' => require_login sub {
return unless scalar @results;
if ( request->is_ajax ) {
template 'ajax/report/ipinventory.tt', { results => \@results, },
my $json = to_json( \@results );
template 'ajax/report/ipinventory.tt', { results => $json },
{ layout => undef };
}
else {