Merge branch 'spidev' into 'master'

Zeiterfassung Feature

See merge request fronk/thetool!587
This commit is contained in:
Daniel Spitzer
2024-08-20 09:50:42 +00:00
2 changed files with 30 additions and 5 deletions
@@ -175,7 +175,13 @@ table = $('#datatable').DataTable({
exportOptions: {
columns: ['th:not(:last-child)'],
format: {
header: function (data, row, column, node) {
console.log(data);
data = data.replace(/<.*>/g, '');
return data;
},
body: function (data, row, column, node) {
data = data.replace(/<span class='d-none'>.*<\/span>/g, '');
data = $('<p>' + data + '</p>').text();
return $.isNumeric(data.replace(',', '.')) ? data.replace(',', '.') : data;
}