From cd04c12bbbf480e54c47f1f601c50de379908e13 Mon Sep 17 00:00:00 2001 From: Everett Berry Date: Sat, 14 May 2022 10:39:30 -0700 Subject: [PATCH 1/2] should fix #615 and #554, also addresses closed issues #274, #353, #385, #426, #529, and #543 --- www/default.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/www/default.js b/www/default.js index 3cfc9c61..7cea1b3c 100644 --- a/www/default.js +++ b/www/default.js @@ -135,8 +135,16 @@ function init_data_table() { stateSave: true, stateDuration: 0, - // Allow export to CSV - buttons: ['csv'], + // Allow export to CSV: only visible columns and only current filtered data + buttons: [{ + extend: 'csv', + text: 'CSV', + exportOptions: { + modifier: { search: 'applied' }, + columns: ':visible' + } + }], + }); g_data_table From d8df24092a050cd780eb218e0c92df09bff559a6 Mon Sep 17 00:00:00 2001 From: Everett Berry Date: Sat, 14 May 2022 10:51:21 -0700 Subject: [PATCH 2/2] run prettier locally --- www/default.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/www/default.js b/www/default.js index 7cea1b3c..a0d558ab 100644 --- a/www/default.js +++ b/www/default.js @@ -136,15 +136,16 @@ function init_data_table() { stateDuration: 0, // Allow export to CSV: only visible columns and only current filtered data - buttons: [{ - extend: 'csv', - text: 'CSV', - exportOptions: { - modifier: { search: 'applied' }, - columns: ':visible' - } - }], - + buttons: [ + { + extend: 'csv', + text: 'CSV', + exportOptions: { + modifier: {search: 'applied'}, + columns: ':visible', + }, + }, + ], }); g_data_table