From 1dc0c8dcdf3cace3683b97694d28aaf6ae7deec8 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Fri, 27 Jan 2023 14:10:32 +0100 Subject: [PATCH] Enable label template datatable settings saving in localStorage [SCI-7818] --- .../javascripts/label_templates/label_templates_datatable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/label_templates/label_templates_datatable.js b/app/assets/javascripts/label_templates/label_templates_datatable.js index 4ae3cba47..2531aedab 100644 --- a/app/assets/javascripts/label_templates/label_templates_datatable.js +++ b/app/assets/javascripts/label_templates/label_templates_datatable.js @@ -236,7 +236,8 @@ var $table = $('#label-templates-table'); LABEL_TEMPLATE_TABLE = $table.DataTable({ dom: "R<'label-toolbar'<'label-buttons-container'><'label-search-container'f>>t<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>", - order: [[1, 'desc']], + order: [[2, 'desc']], + stateSave: true, sScrollX: '100%', sScrollXInner: '100%', processing: true,