Merge pull request #4899 from sboursen-scinote/sb_SCI-7818

Default sorting in tables is saved (user specific) [SCI-7818]
This commit is contained in:
artoscinote 2023-02-01 09:36:23 +01:00 committed by GitHub
commit 3742dc1e54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -237,6 +237,7 @@
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']],
stateSave: true,
sScrollX: '100%',
sScrollXInner: '100%',
processing: true,

View file

@ -227,6 +227,7 @@
dom: "Rt<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
order: [[9, 'desc']],
sScrollX: '100%',
stateSave: true,
sScrollXInner: '100%',
processing: true,
serverSide: true,

View file

@ -41,6 +41,7 @@
aaData: data,
dom: "R<'main-actions hidden'<'toolbar'><'filter-container'f>>t<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
processing: true,
stateSave: true,
pageLength: 25,
colReorder: {
enable: false