diff options
author | moisseev <moiseev@mezonplus.ru> | 2023-11-16 17:42:18 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2023-11-16 17:42:18 +0300 |
commit | b48b703a363a31cc2058fc444082d4b2966b14f5 (patch) | |
tree | e654022f664a5ab322c94a244f1ba3de38489d1b /interface/js/app/graph.js | |
parent | 57dac6a925c55f79687fe82c8b5ac7a6e244b8f5 (diff) | |
download | rspamd-b48b703a363a31cc2058fc444082d4b2966b14f5.tar.gz rspamd-b48b703a363a31cc2058fc444082d4b2966b14f5.zip |
[Minor] Remove temporary IIFEs
Diffstat (limited to 'interface/js/app/graph.js')
-rw-r--r-- | interface/js/app/graph.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index e55214c95..3dca7da9c 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -199,6 +199,7 @@ define(["jquery", "app/rspamd", "d3evolution", "d3pie", "d3", "footable"], graphs.graph = initGraph(); } + rspamd.query("graph", { success: function (req_data) { var data = null; @@ -243,17 +244,16 @@ define(["jquery", "app/rspamd", "d3evolution", "d3pie", "d3", "footable"], }); }; - (() => { - // Handling mouse events on overlapping elements - $("#rrd-pie").mouseover(function () { - $("#rrd-pie,#rrd-pie-tooltip").css("z-index", "200"); - $("#rrd-table_toggle").css("z-index", "300"); - }); - $("#rrd-table_toggle").mouseover(function () { - $("#rrd-pie,#rrd-pie-tooltip").css("z-index", "0"); - $("#rrd-table_toggle").css("z-index", "0"); - }); - })(); + + // Handling mouse events on overlapping elements + $("#rrd-pie").mouseover(function () { + $("#rrd-pie,#rrd-pie-tooltip").css("z-index", "200"); + $("#rrd-table_toggle").css("z-index", "300"); + }); + $("#rrd-table_toggle").mouseover(function () { + $("#rrd-pie,#rrd-pie-tooltip").css("z-index", "0"); + $("#rrd-table_toggle").css("z-index", "0"); + }); return ui; }); |