1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-27 06:04:54 +01:00
This commit is contained in:
Luca 2018-05-24 14:32:34 +02:00
parent 5441da4551
commit e129a3408e
2 changed files with 7 additions and 2 deletions

View File

@ -586,15 +586,20 @@ function start_datatables() {
},
{
extend: 'print',
autoPrint: true,
customize: function ( win ) {
$(win.document.body)
.css( 'font-size', '10pt' )
.append(
'<table class="main-records table table-condensed table-bordered dataTable" ><tfoot><tr><td colspan="3" ></td><td class="pull-right" >'+$('#summable').text()+'</td><td></td></tr></tfoot></table>',
'<table class="main-records table table-condensed table-bordered dataTable" ><tfoot><tr><td></td><td class="pull-right" >'+$('#summable').text()+'</td><td></td></tr></tfoot></table>',
);
$(win.document.body).find( 'table' )
.addClass( 'compact' )
.css( 'font-size', 'inherit' );
$(win.document.body).find( 'td:first-child' )
.addClass( 'hide' );
$(win.document.body).find( 'th:first-child' )
.addClass( 'hide' );
},
exportOptions: {
modifier: {

View File

@ -72,7 +72,7 @@ $result .= '
//Anteprime supportate dal browser
$extension = end((explode('.', $r['original'])));
$extension = strtolower(end((explode('.', $r['original']))));
$supported_extensions = ['pdf','jpg','png','gif','jpeg','bmp'];
if ( in_array($extension, $supported_extensions)){