From 690c34bc1d10d8ab463d59988ddaa0559ff1f1ec Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Fri, 30 Dec 2022 16:22:52 +0100 Subject: [PATCH 1/2] Sort sync jobs DataTable based on ID By setting the default column to perform the sort on, the additional sort option for the first (hidden) column is also removed. --- data/web/js/site/mailbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 12c4bb4d..30bd91bf 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -1908,6 +1908,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/syncjobs/all/no_log", From de30650dc78c025f8413e498a063b1e64ad6398b Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Fri, 30 Dec 2022 16:32:02 +0100 Subject: [PATCH 2/2] Sort other mailbox DataTables also descending by ID Also removes the extra non-usable sort option. --- data/web/js/site/mailbox.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 30bd91bf..0e400b30 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -623,6 +623,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/domain/template/all", @@ -1078,6 +1079,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/mailbox/template/all", @@ -1414,6 +1416,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/bcc/all", @@ -1510,6 +1513,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/recipient_map/all", @@ -1593,6 +1597,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/tls-policy-map/all", @@ -1686,6 +1691,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/alias/all", @@ -2049,6 +2055,7 @@ jQuery(function($){ processing: true, serverSide: false, language: lang_datatables, + order:[[2, 'desc']], ajax: { type: "GET", url: "/api/v1/get/filters/all",