Fix export in Excel

This commit is contained in:
loviuz 2019-07-03 12:32:57 +02:00
parent 1405ef515a
commit 1fe890941f
1 changed files with 9 additions and 0 deletions

View File

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