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
|
"blurable": true
|
||||||
},
|
},
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"stateDuration": 3600,
|
"stateDuration": 0,
|
||||||
"buttons": [],
|
"buttons": [],
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -223,7 +223,7 @@ function deleteAction() {
|
||||||
"blurable": true
|
"blurable": true
|
||||||
},
|
},
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"stateDuration": 3600,
|
"stateDuration": 0,
|
||||||
"buttons": [],
|
"buttons": [],
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
"blurable": true
|
"blurable": true
|
||||||
},
|
},
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"stateDuration": 3600,
|
"stateDuration": 0,
|
||||||
"buttons": [],
|
"buttons": [],
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -798,6 +798,18 @@
|
||||||
},
|
},
|
||||||
"deferRender": true,
|
"deferRender": true,
|
||||||
"processing": 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": [
|
"columns": [
|
||||||
{ "data": "meta" },
|
{ "data": "meta" },
|
||||||
{ "data": "type" },
|
{ "data": "type" },
|
||||||
|
|
|
@ -235,7 +235,7 @@
|
||||||
"blurable": true
|
"blurable": true
|
||||||
},
|
},
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"stateDuration": 3600,
|
"stateDuration": 0,
|
||||||
"buttons": [],
|
"buttons": [],
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue