diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-03 20:54:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 20:54:25 +0100 |
commit | 87e73c0dca81a615bd5337f52042b1cac5108eb7 (patch) | |
tree | 96277d50ffde40803e0636af7a47d6a32ee64c0d /interface | |
parent | e2c9ea10a36bd2f48d4570123062d8af6dffc513 (diff) | |
parent | 2c992334779c3a381056b2e94d0d2d4dc22e3d85 (diff) | |
download | rspamd-87e73c0dca81a615bd5337f52042b1cac5108eb7.tar.gz rspamd-87e73c0dca81a615bd5337f52042b1cac5108eb7.zip |
Merge pull request #3696 from moisseev/webui
[WebUI] Fix sorting errors by date
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/history.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index edf9e19cf..8feb527e1 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -408,7 +408,14 @@ define(["jquery", "footable"], function initErrorsTable(rspamd, tables, rows) { tables.errors = FooTable.init("#errorsLog", { columns: [ - {sorted:true, direction:"DESC", name:"ts", title:"Time", style:{"font-size":"11px", "width":300, "maxWidth":300}}, + { + sorted: true, + direction: "DESC", + name: "ts", + title: "Time", + style: {"font-size": "11px", "width": 300, "maxWidth": 300}, + sortValue: function (val) { return Number(val.options.sortValue); } + }, {name:"type", title:"Worker type", breakpoints:"xs sm", style:{"font-size":"11px", "width":150, "maxWidth":150}}, {name:"pid", title:"PID", breakpoints:"xs sm", style:{"font-size":"11px", "width":110, "maxWidth":110}}, {name:"module", title:"Module", style:{"font-size":"11px"}}, |