mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Set stateDuration to 0 for all saved datatables to store the state indefinitely (#1944)
* Set stateDuration to 0 for all saved datatables to store the state indefinite Signed-off-by: Christian König <ckoenig@posteo.de> * Move stateDuration to utils.js Signed-off-by: Christian König <ckoenig@posteo.de> * Remove duplicated code as it is already part of utils.stateLoadCallback Signed-off-by: Christian König <ckoenig@posteo.de> * Fix function Signed-off-by: Christian König <ckoenig@posteo.de> * Revert "Fix function" This reverts commit2f54f5f988. Signed-off-by: Christian König <ckoenig@posteo.de> * Revert "Move stateDuration to utils.js" This reverts commit6a3e7786bc. Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -223,6 +223,7 @@ $(function () {
|
||||
scrollX: true,
|
||||
order: [[2, "asc"]],
|
||||
stateSave: true,
|
||||
stateDuration: 0,
|
||||
stateSaveCallback: function (settings, data) {
|
||||
utils.stateSaveCallback("activeDhcpLeaseTable", data);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user