Remember last used sort column/direction on Local DNS Records table and CNAME table

Signed-off-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
yubiuser
2020-08-16 23:13:49 +02:00
parent 847ee656d3
commit 87fa180e67
2 changed files with 16 additions and 0 deletions

View File

@@ -69,6 +69,14 @@ $(function () {
[10, 25, 50, 100, -1],
[10, 25, 50, 100, "All"]
],
order: [[0, "asc"]],
stateSave: true,
stateSaveCallback: function (settings, data) {
utils.stateSaveCallback("LocalDNSTable", data);
},
stateLoadCallback: function () {
return utils.stateLoadCallback("LocalDNSTable");
},
drawCallback: function () {
$(".deleteCustomDNS").on("click", deleteCustomDNS);
}