mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-27 06:04:54 +01:00
Bugfix
This commit is contained in:
parent
5441da4551
commit
e129a3408e
@ -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: {
|
||||
|
@ -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)){
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user