aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-11-30 18:56:48 +0300
committerGitHub <noreply@github.com>2016-11-30 18:56:48 +0300
commit1a9f55ce1280ee83a9e4c0ca1a4c2650cf7634bc (patch)
treeecd9873d3301231cbe4dbe978e4a5df05f0062fc /interface
parentcdecbbc8c5ef2c835e17ac6c3a4803459ee5fbd9 (diff)
downloadrspamd-1a9f55ce1280ee83a9e4c0ca1a4c2650cf7634bc.tar.gz
rspamd-1a9f55ce1280ee83a9e4c0ca1a4c2650cf7634bc.zip
[WebUI] Load graph data on reconnect if the tab is active
Diffstat (limited to 'interface')
-rw-r--r--interface/js/rspamd.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index 15b64d213..40a9799e6 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -1224,6 +1224,10 @@
getChart();
initGraph();
+ if ($("#throughput_nav").attr("aria-expanded") === "true") {
+ getGraphData(selected.selData);
+ }
+
$('#progress').hide();
$(disconnect).show();
}