From 9cf578b2647376348815116754e44bb76e5b34ed Mon Sep 17 00:00:00 2001 From: loviuz Date: Fri, 17 Apr 2020 13:54:44 +0200 Subject: [PATCH] Fix per importi su export CSV --- assets/src/js/functions/datatables.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js index d653c88a5..7c133b399 100755 --- a/assets/src/js/functions/datatables.js +++ b/assets/src/js/functions/datatables.js @@ -90,6 +90,14 @@ function start_datatables() { exportOptions: { modifier: { selected: true + }, + format: { + body: function (data, row, column, node) { + data = $('

' + data + '

').text(); + data_edit = data.replace('.', ''); // Rimozione punto delle migliaia + + return data_edit.match(/^[0-9,]+$/) ? data_edit : data; + } } } },