web ui: save the state of the tables

the state will be saved for 1 hour
This commit is contained in:
Nicola Murino 2021-01-27 08:41:21 +01:00
parent c2bbd468c4
commit 02679d6df3
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB
3 changed files with 6 additions and 0 deletions

View file

@ -157,6 +157,8 @@
"<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>", "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
select: true, select: true,
stateSave: true,
stateDuration: 3600,
buttons: [], buttons: [],
"columnDefs": [ "columnDefs": [
{ {

View file

@ -187,6 +187,8 @@ function deleteAction() {
"<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>", "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
select: true, select: true,
stateSave: true,
stateDuration: 3600,
buttons: [], buttons: [],
"scrollX": false, "scrollX": false,
"order": [[0, 'asc']] "order": [[0, 'asc']]

View file

@ -239,6 +239,8 @@
"<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>", "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
select: true, select: true,
stateSave: true,
stateDuration: 3600,
buttons: [], buttons: [],
"columnDefs": [ "columnDefs": [
{ {