Fix export in Excel
This commit is contained in:
parent
1405ef515a
commit
1fe890941f
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue