浏览代码

web ui: save the state of the tables

the state will be saved for 1 hour
Nicola Murino 4 年之前
父节点
当前提交
02679d6df3
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 2 0
      templates/admins.html
  2. 2 0
      templates/folders.html
  3. 2 0
      templates/users.html

+ 2 - 0
templates/admins.html

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

+ 2 - 0
templates/folders.html

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

+ 2 - 0
templates/users.html

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