web client: save/restore file list preferences
This commit is contained in:
parent
30d98326ca
commit
3f5451eab6
5 changed files with 16 additions and 4 deletions
|
@ -168,7 +168,7 @@
|
|||
"blurable": true
|
||||
},
|
||||
"stateSave": true,
|
||||
"stateDuration": 3600,
|
||||
"stateDuration": 0,
|
||||
"buttons": [],
|
||||
"columnDefs": [
|
||||
{
|
||||
|
|
|
@ -223,7 +223,7 @@ function deleteAction() {
|
|||
"blurable": true
|
||||
},
|
||||
"stateSave": true,
|
||||
"stateDuration": 3600,
|
||||
"stateDuration": 0,
|
||||
"buttons": [],
|
||||
"columnDefs": [
|
||||
{
|
||||
|
|
|
@ -245,7 +245,7 @@
|
|||
"blurable": true
|
||||
},
|
||||
"stateSave": true,
|
||||
"stateDuration": 3600,
|
||||
"stateDuration": 0,
|
||||
"buttons": [],
|
||||
"columnDefs": [
|
||||
{
|
||||
|
|
|
@ -798,6 +798,18 @@
|
|||
},
|
||||
"deferRender": true,
|
||||
"processing": true,
|
||||
"lengthMenu": [ 10, 25, 50, 100, 250, 500 ],
|
||||
"stateSave": true,
|
||||
"stateDuration": 0,
|
||||
"stateSaveParams": function (settings, data) {
|
||||
data.sftpgo_dir = '{{.CurrentDir}}';
|
||||
},
|
||||
"stateLoadParams": function (settings, data) {
|
||||
if (!data.sftpgo_dir || data.sftpgo_dir != '{{.CurrentDir}}'){
|
||||
data.start = 0;
|
||||
data.search.search = "";
|
||||
}
|
||||
},
|
||||
"columns": [
|
||||
{ "data": "meta" },
|
||||
{ "data": "type" },
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
"blurable": true
|
||||
},
|
||||
"stateSave": true,
|
||||
"stateDuration": 3600,
|
||||
"stateDuration": 0,
|
||||
"buttons": [],
|
||||
"columnDefs": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue