mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
web client: save/restore file list preferences
This commit is contained in:
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user