From: Alexander Moisseev Date: Wed, 30 Nov 2016 15:56:48 +0000 (+0300) Subject: [WebUI] Load graph data on reconnect if the tab is active X-Git-Tag: 1.4.2~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1211%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Load graph data on reconnect if the tab is active --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 15b64d213a..40a9799e6e 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(); }