aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2019-07-08 21:29:00 +0300
committermoisseev <moiseev@mezonplus.ru>2019-07-08 21:29:47 +0300
commitf8a4984ff763a8cab84d2845e6b2d6a7716014de (patch)
treef4fc6e6d2eac7a4c125004f7bbd9d7e7afc908f7 /interface
parentc9aa615d7d10bf0d3690270f03a8bff431524cc2 (diff)
downloadrspamd-f8a4984ff763a8cab84d2845e6b2d6a7716014de.tar.gz
rspamd-f8a4984ff763a8cab84d2845e6b2d6a7716014de.zip
[WebUI] Fix sorting errors by date
#2965
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/history.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index d6e96f3e4..a3a1d813f 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -827,7 +827,12 @@ define(["jquery", "footable", "humanize"],
});
var rows = [].concat.apply([], neighbours_data);
$.each(rows, function (i, item) {
- item.ts = unix_time_format(item.ts);
+ item.ts = {
+ value: unix_time_format(item.ts),
+ options: {
+ sortValue: item.ts
+ }
+ };
});
if (Object.prototype.hasOwnProperty.call(tables, "errors")) {
tables.errors.rows.load(rows);