summaryrefslogtreecommitdiffstats
path: root/interface/js/app/graph.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-12 12:49:21 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-12 12:49:21 +0300
commitebfc92f3490d961f81d0d54b98f2f89e728a7a22 (patch)
treecddc84a2ee0a9095d4ad51ea9d0cc755d6690647 /interface/js/app/graph.js
parent7f169bd819f5b35cd3237308b3e4441cc02934ff (diff)
downloadrspamd-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/graph.js')
-rw-r--r--interface/js/app/graph.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js
index 7ff570852..c7e0041ea 100644
--- a/interface/js/app/graph.js
+++ b/interface/js/app/graph.js
@@ -27,6 +27,7 @@
define(["jquery", "d3evolution", "footable"],
function ($, D3Evolution) {
+ "use strict";
var rrd_pie_config = {
header: {},
size: {
@@ -168,10 +169,10 @@ define(["jquery", "d3evolution", "footable"],
});
}
- var interface = {};
+ var ui = {};
var prevUnit = "msg/s";
- interface.draw = function (rspamd, graphs, neighbours, checked_server, type) {
+ ui.draw = function (rspamd, graphs, neighbours, checked_server, type) {
function updateWidgets(data) {
// Autoranging
@@ -280,7 +281,7 @@ define(["jquery", "d3evolution", "footable"],
});
};
- interface.setup = function () {
+ ui.setup = function () {
// Handling mouse events on overlapping elements
$("#rrd-pie").mouseover(function () {
$("#rrd-pie").css("z-index", "200");
@@ -294,5 +295,5 @@ define(["jquery", "d3evolution", "footable"],
return getSelector("selData");
};
- return interface;
+ return ui;
});