mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
allow datatable to export all columns but latest one
This commit is contained in:
parent
b55679cbfd
commit
f8883151f3
@ -3459,6 +3459,11 @@ function ui_print_datatable(array $parameters)
|
||||
}
|
||||
}
|
||||
|
||||
$export_columns = '';
|
||||
if ($parameters['csv_exclude_latest'] === true) {
|
||||
$export_columns = ',columns: \'th:not(:last-child)\'';
|
||||
}
|
||||
|
||||
$js .= '
|
||||
if (dt_'.$table_id.'.page.info().pages > 1) {
|
||||
$("#'.$table_id.'_wrapper > .dataTables_paginate.paging_simple_numbers").show()
|
||||
@ -3489,8 +3494,7 @@ function ui_print_datatable(array $parameters)
|
||||
order : "current",
|
||||
page : "All",
|
||||
search : "applied"
|
||||
},
|
||||
columns: [1,'.$columns.']
|
||||
}'.$export_columns.'
|
||||
}
|
||||
}
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user