Fix per importi su export CSV

This commit is contained in:
loviuz 2020-04-17 13:54:44 +02:00
parent 22e731c280
commit 9cf578b264
1 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,14 @@ function start_datatables() {
exportOptions: {
modifier: {
selected: true
},
format: {
body: function (data, row, column, node) {
data = $('<p>' + data + '</p>').text();
data_edit = data.replace('.', ''); // Rimozione punto delle migliaia
return data_edit.match(/^[0-9,]+$/) ? data_edit : data;
}
}
}
},