From 16cc2672277c2b22254d98388839a739eca9ef8a Mon Sep 17 00:00:00 2001 From: Mattia Giupponi Date: Tue, 26 Jan 2021 18:18:10 +0100 Subject: [PATCH] Fix UI order in export --- app/static/index.js | 1 + app/templates/export/base-export.html | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/static/index.js b/app/static/index.js index 885a60cc..c82059cd 100644 --- a/app/static/index.js +++ b/app/static/index.js @@ -81,6 +81,7 @@ const table_function_mapper = { var download = ''; } table.row.add([ + data.id, data.user, data.geopackage_name, get_local_date(data.start_date) || "--/--/---" , diff --git a/app/templates/export/base-export.html b/app/templates/export/base-export.html index 21bf1ad1..aa1e0d0c 100644 --- a/app/templates/export/base-export.html +++ b/app/templates/export/base-export.html @@ -29,6 +29,7 @@ + @@ -96,7 +97,14 @@ "language": { "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Italian.json" }, - "order": [[ 2, "desc" ]] + "columnDefs": [ + { + "targets": [ 0 ], + "visible": false, + "searchable": false + } + ], + "order": [[ 0, "desc" ]] } ); } );
id Utente GeoPackage Data Inizio