mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +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 .= '
|
$js .= '
|
||||||
if (dt_'.$table_id.'.page.info().pages > 1) {
|
if (dt_'.$table_id.'.page.info().pages > 1) {
|
||||||
$("#'.$table_id.'_wrapper > .dataTables_paginate.paging_simple_numbers").show()
|
$("#'.$table_id.'_wrapper > .dataTables_paginate.paging_simple_numbers").show()
|
||||||
@ -3489,8 +3494,7 @@ function ui_print_datatable(array $parameters)
|
|||||||
order : "current",
|
order : "current",
|
||||||
page : "All",
|
page : "All",
|
||||||
search : "applied"
|
search : "applied"
|
||||||
},
|
}'.$export_columns.'
|
||||||
columns: [1,'.$columns.']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user