diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-12 12:49:21 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-12 12:49:21 +0300 |
commit | ebfc92f3490d961f81d0d54b98f2f89e728a7a22 (patch) | |
tree | cddc84a2ee0a9095d4ad51ea9d0cc755d6690647 /interface/js/app/stats.js | |
parent | 7f169bd819f5b35cd3237308b3e4441cc02934ff (diff) | |
download | rspamd-ebfc92f3490d961f81d0d54b98f2f89e728a7a22.tar.gz rspamd-ebfc92f3490d961f81d0d54b98f2f89e728a7a22.zip |
[WebUI] Enable strict mode,
rename `interface` oblect as it is a reserved keyword,
declare $span and $tbody variables
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r-- | interface/js/app/stats.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 19b1d72a7..56f3e7101 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -24,7 +24,8 @@ define(["jquery", "d3pie", "humanize"], function ($, d3pie, Humanize) { - // @ ms to date + "use strict"; + // @ ms to date function msToTime(seconds) { /* eslint-disable no-bitwise */ var years = seconds / 31536000 >> 0; // 3600*24*365 @@ -170,7 +171,7 @@ define(["jquery", "d3pie", "humanize"], } } // Public API - var interface = { + var ui = { statWidgets: function (rspamd, graphs, checked_server) { rspamd.queryNeighbours("/auth", function (neighbours_status) { var neighbours_sum = { @@ -232,6 +233,6 @@ define(["jquery", "d3pie", "humanize"], }, }; - return interface; + return ui; } ); |