mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 01:08:08 +01:00
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…
x
Reference in New Issue
Block a user